Skip to content

Commit edfb6f6

Browse files
committed
Fix read_uint64() bug
1 parent c04c949 commit edfb6f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ulog_sqlite.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ uint32_t read_uint32(byte *ptr) {
122122
return ret;
123123
}
124124

125-
// Reads and returns big-endian uint32_t
125+
// Reads and returns big-endian uint64_t
126126
// at a given memory location
127127
uint64_t read_uint64(byte *ptr) {
128-
uint32_t ret = 0;
128+
uint64_t ret = 0;
129129
int len = 8;
130130
while (len--)
131131
ret += (*ptr++ << (8 * len));

0 commit comments

Comments
 (0)