Skip to content

Commit 6d33f2a

Browse files
committed
revert longValue Exact.
1 parent b72a9c7 commit 6d33f2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/tron/common/utils/ByteArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static byte[] fromHexString(String data) {
5858
* get long data from bytes data.
5959
*/
6060
public static long toLong(byte[] b) {
61-
return ArrayUtils.isEmpty(b) ? 0 : new BigInteger(1, b).longValueExact();
61+
return ArrayUtils.isEmpty(b) ? 0 : new BigInteger(1, b).longValue();
6262
}
6363

6464
/**

0 commit comments

Comments
 (0)