Skip to content

Commit 36fb9d4

Browse files
committed
Fix bug in read_uint64
1 parent e773b99 commit 36fb9d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ulog_sqlite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ uint64_t read_uint64(byte *ptr) {
128128
uint64_t ret = 0;
129129
int len = 8;
130130
while (len--)
131-
ret += (*ptr++ << (8 * len));
131+
ret += (((uint64_t)*ptr++) << (8 * len));
132132
return ret;
133133
}
134134

0 commit comments

Comments
 (0)