Skip to content

Commit 5e680a2

Browse files
committed
fix mypy drift
1 parent 4e336f2 commit 5e680a2

File tree

1 file changed

+1
-1
lines changed
  • tools/census_contrib/src/census_contrib

1 file changed

+1
-1
lines changed

tools/census_contrib/src/census_contrib/save.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def roundHalfToEven(a: npt.NDArray[np.float32], keepbits: int) -> npt.NDArray[np
101101
half_quantum1 = (1 << (maskbits - 1)) - 1
102102

103103
b = a.view(np.uint32)
104-
b += ((b >> maskbits) & 1) + half_quantum1
104+
b += np.uint32(((b >> maskbits) & 1) + half_quantum1)
105105
b &= mask
106106
return a
107107

0 commit comments

Comments
 (0)