Skip to content

Commit bfc4a28

Browse files
author
chenby
committed
mem
1 parent b7a8420 commit bfc4a28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/moilioncircle/redis/rdb/cli/ext/rct/MemRdbVisitor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,8 @@ public long[] parseLong(byte[] array) {
845845
}
846846
for (; i < array.length; i++) {
847847
if (array[i] >= '0' && array[i] <= '9') {
848-
t = t * (long) Math.pow(10, i) + array[i] - 48;
848+
int x = array[i] - 48;
849+
t = t * 10 + x;
849850
if (t < 0) return err;
850851
} else {
851852
return err;

0 commit comments

Comments
 (0)