@@ -307,16 +307,7 @@ def int_unary_op(name: str, c_function_name: str) -> PrimitiveDescription:
307307 error_kind = ERR_NEVER ,
308308)
309309
310-
311- # int.to_bytes(length, byteorder, signed=...)
312- int_to_bytes_op = custom_op (
313- arg_types = [int_rprimitive , c_pyssize_t_rprimitive , str_rprimitive , bool_rprimitive ],
314- return_type = bytes_rprimitive ,
315- c_function_name = "CPyTagged_ToBytes" ,
316- error_kind = ERR_MAGIC ,
317- )
318-
319- # specialized custom_op cases for int.to_bytes:
310+ # specialized custom_op cases for int.to_bytes
320311
321312# int.to_bytes(length, "big")
322313# int.to_bytes(length, "big", signed=...)
@@ -335,3 +326,11 @@ def int_unary_op(name: str, c_function_name: str) -> PrimitiveDescription:
335326 c_function_name = "CPyTagged_ToLittleEndianBytes" ,
336327 error_kind = ERR_MAGIC ,
337328)
329+
330+ # int.to_bytes(length, byteorder, signed=...)
331+ int_to_bytes_op = custom_op (
332+ arg_types = [int_rprimitive , c_pyssize_t_rprimitive , str_rprimitive , bool_rprimitive ],
333+ return_type = bytes_rprimitive ,
334+ c_function_name = "CPyTagged_ToBytes" ,
335+ error_kind = ERR_MAGIC ,
336+ )
0 commit comments