mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-19 12:12:08 +01:00
Code cleanup
This commit is contained in:
parent
94e2d58805
commit
7fe82b12fe
@ -67,16 +67,15 @@ quint32 HuffmanTable::symbol(quint32 data, quint8 &size) const
|
|||||||
tp = _bsrchTable + (m * _bsrchEntryBytes);
|
tp = _bsrchTable + (m * _bsrchEntryBytes);
|
||||||
quint32 nd = readVUint32(tp, _symBytes);
|
quint32 nd = readVUint32(tp, _symBytes);
|
||||||
|
|
||||||
if (data <= nd) {
|
if (data < nd) {
|
||||||
if (data == nd)
|
tp = prev;
|
||||||
lo = m;
|
hi = m - 1;
|
||||||
else
|
} else if (data > nd) {
|
||||||
tp = prev;
|
lo = m;
|
||||||
|
} else {
|
||||||
hi = m - (data < nd);
|
lo = m;
|
||||||
m = lo;
|
hi = m;
|
||||||
}
|
}
|
||||||
lo = m;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
quint32 i = readVUint32(tp, _symBytes);
|
quint32 i = readVUint32(tp, _symBytes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user