Compare commits
No commits in common. "8b0fbfdcf7b9f4c79432b9ce8ef8849ecbd72be4" and "cca8f02870268536cdcbf84b422cedbf88c9c25f" have entirely different histories.
8b0fbfdcf7
...
cca8f02870
7
Makefile
7
Makefile
@ -1,7 +0,0 @@
|
||||
libeebie.so:
|
||||
$(CC) -shared -g -O2 -o libeebie.so eebie/reader.c eebie/writer.c
|
||||
|
||||
install:
|
||||
install -d /usr/local/include/eebie
|
||||
install eebie/*.h /usr/local/include/eebie
|
||||
install libeebie.so /usr/local/lib
|
@ -32,8 +32,7 @@ static int bit_length(uint64_t i) {
|
||||
}
|
||||
|
||||
static uint64_t encode_int(uint64_t i) {
|
||||
// bit_length(i + 1) over bit_length(i) because 0xFF... lengths are interpreted as indefinite
|
||||
return i | VARINT_MASKS[(bit_length(i + 1) + 6) / 7];
|
||||
return i | VARINT_MASKS[(bit_length(i) + 6) / 7];
|
||||
}
|
||||
|
||||
static void advance(EBMLWriter *this, uint64_t amount) {
|
||||
|
Loading…
Reference in New Issue
Block a user