Skip to content
Snippets Groups Projects
Commit 4a90a0be authored by Sven M. Hallberg's avatar Sven M. Hallberg
Browse files

fix h_read_bits path for BYTE_LITTLE_ENDIAN

parent 5f920b29
No related branches found
No related tags found
No related merge requests found
......@@ -62,9 +62,10 @@ int64_t h_read_bits(HInputStream* state, int count, char signed_p) {
out = (out << 8) | state->input[state->index++];
}
} else {
while (count > 0) {
int i;
for (i = 0; count > 0; i += 8) {
count -= 8;
out |= state->input[state->index++] << count;
out |= state->input[state->index++] << i;
}
}
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment