Skip to content

Commit ad95740

Browse files
committed
cast to int after floordiv
1 parent 262c0b6 commit ad95740

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

funlib/geometry/coordinate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def __floordiv__(self, other) -> "Coordinate":
172172
)
173173

174174
elif isinstance(other, numbers.Number):
175-
return Coordinate(a // other if a is not None else None for a in self)
175+
return Coordinate(int(a // other) if a is not None else None for a in self)
176176

177177
else:
178178
raise TypeError(

0 commit comments

Comments
 (0)