1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-19 04:02:09 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2021-10-24 12:56:09 +02:00
parent 94e2d58805
commit 7fe82b12fe

View File

@ -67,16 +67,15 @@ quint32 HuffmanTable::symbol(quint32 data, quint8 &size) const
tp = _bsrchTable + (m * _bsrchEntryBytes);
quint32 nd = readVUint32(tp, _symBytes);
if (data <= nd) {
if (data == nd)
lo = m;
else
tp = prev;
hi = m - (data < nd);
m = lo;
if (data < nd) {
tp = prev;
hi = m - 1;
} else if (data > nd) {
lo = m;
} else {
lo = m;
hi = m;
}
lo = m;
}
quint32 i = readVUint32(tp, _symBytes);