Skip to content

Commit 3ad1e50

Browse files
maybe fix
1 parent c4d9673 commit 3ad1e50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mypyc/primitives/int_ops.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def int_unary_op(name: str, c_function_name: str) -> PrimitiveDescription:
310310

311311
# int.to_bytes(length, byteorder, signed=...)
312312
int_to_bytes_op = custom_op(
313-
arg_types=[int_rprimitive, int_rprimitive, str_rprimitive, bool_rprimitive],
313+
arg_types=[int_rprimitive, c_pyssize_t_rprimitive, str_rprimitive, bool_rprimitive],
314314
return_type=bytes_rprimitive,
315315
c_function_name="CPyTagged_ToBytes",
316316
error_kind=ERR_MAGIC,
@@ -321,7 +321,7 @@ def int_unary_op(name: str, c_function_name: str) -> PrimitiveDescription:
321321
# int.to_bytes(length, "big")
322322
# int.to_bytes(length, "big", signed=...)
323323
int_to_big_endian_op = custom_op(
324-
arg_types=[int_rprimitive, int_rprimitive, bool_rprimitive],
324+
arg_types=[int_rprimitive, c_pyssize_t_rprimitive, bool_rprimitive],
325325
return_type=bytes_rprimitive,
326326
c_function_name="CPyTagged_ToBigEndianBytes",
327327
error_kind=ERR_MAGIC,
@@ -330,7 +330,7 @@ def int_unary_op(name: str, c_function_name: str) -> PrimitiveDescription:
330330
# int.to_bytes(length, "little")
331331
# int.to_bytes(length, "little", signed=...)
332332
int_to_little_endian_op = custom_op(
333-
arg_types=[int_rprimitive, int_rprimitive, bool_rprimitive],
333+
arg_types=[int_rprimitive, c_pyssize_t_rprimitive, bool_rprimitive],
334334
return_type=bytes_rprimitive,
335335
c_function_name="CPyTagged_ToLittleEndianBytes",
336336
error_kind=ERR_MAGIC,

0 commit comments

Comments
 (0)