Skip to content

Commit 66da3db

Browse files
committed
use size_t for sizes
avoids OverflowError hooray tests!
1 parent feae9ea commit 66da3db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zmq/backend/cython/_zmq.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,8 +1136,8 @@ def send(self, data, flags=0, copy: bint = True, track: bint = False):
11361136
else:
11371137
if self.copy_threshold:
11381138
buf = memoryview(data)
1139-
nbytes: C.int = buf.nbytes
1140-
copy_threshold: C.int = self.copy_threshold
1139+
nbytes: size_t = buf.nbytes
1140+
copy_threshold: size_t = self.copy_threshold
11411141
# always copy messages smaller than copy_threshold
11421142
if nbytes < copy_threshold:
11431143
_send_copy(self.handle, buf, flags)

0 commit comments

Comments
 (0)