Skip to content

Commit 9fef2f3

Browse files
committed
Do these computations with signed integers.
This is because NumPy contains a booby trap where if you multiply an unsigned integer with a plain Python 'int', you will get back a float: numpy/numpy#5745
1 parent 60fd73c commit 9fef2f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎rts/python/values.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def read_array(f, expected_type, rank):
537537
shape = []
538538
elem_count = 1
539539
for i in range(rank):
540-
bin_size = read_bin_u64(f)
540+
bin_size = read_bin_i64(f)
541541
elem_count *= bin_size
542542
shape.append(bin_size)
543543

0 commit comments

Comments
 (0)