1
0
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:
2021-03-19 20:09:11 +01:00
parent a4648020d9
commit 8196b96f65
4 changed files with 29 additions and 34 deletions

View File

@ -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