Skip to content

Commit 813c510

Browse files
committed
add headers
1 parent 2058f81 commit 813c510

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

mypyc/lib-rt/CPy.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ CPyTagged CPyTagged_Remainder_(CPyTagged left, CPyTagged right);
139139
CPyTagged CPyTagged_BitwiseLongOp_(CPyTagged a, CPyTagged b, char op);
140140
CPyTagged CPyTagged_Rshift_(CPyTagged left, CPyTagged right);
141141
CPyTagged CPyTagged_Lshift_(CPyTagged left, CPyTagged right);
142+
PyObject *CPyTagged_ToBytes(CPyTagged self, Py_ssize_t length, PyObject *byteorder, int signed_flag)
142143

143144
PyObject *CPyTagged_Str(CPyTagged n);
144145
CPyTagged CPyTagged_FromFloat(double f);

mypyc/lib-rt/int_ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ double CPyTagged_TrueDivide(CPyTagged x, CPyTagged y) {
583583
}
584584

585585
// int.to_bytes(length, byteorder, signed=False)
586-
PyObject *CPyInt_ToBytes(CPyTagged self, Py_ssize_t length, PyObject *byteorder, int signed_flag) {
586+
PyObject *CPyTagged_ToBytes(CPyTagged self, Py_ssize_t length, PyObject *byteorder, int signed_flag) {
587587
PyObject *pyint = CPyTagged_StealAsObject(self);
588588
if (!PyLong_Check(pyint)) {
589589
Py_DECREF(pyint);

mypyc/primitives/int_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def int_unary_op(name: str, c_function_name: str) -> PrimitiveDescription:
312312
name="to_bytes",
313313
arg_types=[int_rprimitive, int_rprimitive, str_rprimitive, bool_rprimitive],
314314
return_type=bytes_rprimitive,
315-
c_function_name="CPyInt_ToBytes",
315+
c_function_name="CPyTagged_ToBytes",
316316
error_kind=ERR_MAGIC,
317317
)
318318

0 commit comments

Comments
 (0)