Skip to content

Commit 50fc271

Browse files
committed
try fix again
TypeError: unsupported operand type(s) for &: 'float' and 'int'
1 parent 9af9729 commit 50fc271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymysqlreplication/bitmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def _createLastWordMask(self):
4747
used = 1 + (self._nbits - 1) & 0x7
4848
mask = (~(1 << used) - 1) & 255
4949

50-
l = ((self._nbits + 7) / 8) & 3
50+
l = int((self._nbits + 7) / 8) & 3
5151
if l == 1:
5252
self._lastWordMask = ~0 & 0xFFFFFFFF
5353
b = bytearray(struct.pack("<I", self._lastWordMask))

0 commit comments

Comments
 (0)