We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7a8420 commit bfc4a28Copy full SHA for bfc4a28
src/main/java/com/moilioncircle/redis/rdb/cli/ext/rct/MemRdbVisitor.java
@@ -845,7 +845,8 @@ public long[] parseLong(byte[] array) {
845
}
846
for (; i < array.length; i++) {
847
if (array[i] >= '0' && array[i] <= '9') {
848
- t = t * (long) Math.pow(10, i) + array[i] - 48;
+ int x = array[i] - 48;
849
+ t = t * 10 + x;
850
if (t < 0) return err;
851
} else {
852
return err;
0 commit comments