mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-27 03:29:16 +02:00
Fixed error handling
This commit is contained in:
@ -26,4 +26,16 @@ inline quint8 bs(const quint8 val)
|
||||
return (val + 7) >> 3;
|
||||
}
|
||||
|
||||
inline quint8 byteSize(quint32 val)
|
||||
{
|
||||
quint8 ret = 0;
|
||||
|
||||
do {
|
||||
ret++;
|
||||
val = val >> 8;
|
||||
} while (val != 0);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif // GARMIN_H
|
||||
|
Reference in New Issue
Block a user