Skip to content

Commit

Permalink
fix issue with multiplication of a uint64 array scalar with a negativ…
Browse files Browse the repository at this point in the history
…e value
  • Loading branch information
grlee77 committed Jan 9, 2025
1 parent 31ab5d1 commit cf304a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/cucim/src/cucim/skimage/transform/integral.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ def integrate(ii, start, end):

# CuPy Backend: TODO: check efficiency here
if scalar_output:
S += sign * ii[tuple(corner_points[0])] if (not bad[0]) else 0
S += sign * int(ii[tuple(corner_points[0])]) if (not bad[0]) else 0
else:
for r in range(rows):
# add only good rows
if not bad[r]:
S[r] += sign * ii[tuple(corner_points[r])]
S[r] += sign * int(ii[tuple(corner_points[r])])
return S

0 comments on commit cf304a7

Please sign in to comment.