Skip to content

Commit 4d7b18d

Browse files
committed
m1n1.proxy: Support negative arguments
Signed-off-by: Hector Martin <[email protected]>
1 parent cae2059 commit 4d7b18d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

proxyclient/m1n1/proxy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,8 @@ def request(self, opcode, *args, **kwargs):
671671
if (i < (len(args) - 1)) and args[i + 1] is None:
672672
args[i + 1] = len(arg)
673673
arg = p
674+
if arg < 0:
675+
arg &= (1 << 64) - 1
674676
args2.append(arg)
675677
try:
676678
return self._request(opcode, *args2, **kwargs)

0 commit comments

Comments
 (0)