summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorRobert Bradshaw <robertwb@gmail.com>2013-08-26 10:48:32 -0700
committerRobert Bradshaw <robertwb@gmail.com>2013-08-26 15:02:55 -0700
commit3e5fc3ce0699e4ecdc143d995746f2d8ca80c104 (patch)
tree8bf411e17e8678fc7de9379c2fde88361c0fe70d /Cython/Compiler/ModuleNode.py
parent3d1dc84d531074bdc9591ac5554e9621f4c70bb8 (diff)
downloadcython-3e5fc3ce0699e4ecdc143d995746f2d8ca80c104.tar.gz
Fix some integer conversion tests.
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r--Cython/Compiler/ModuleNode.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index 6ae12a76a..a19124fc3 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -589,6 +589,10 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln('#define __Pyx_PyObject_FromStringAndSize __Pyx_Py%s_FromStringAndSize' % c_string_type.title())
code.put(UtilityCode.load_as_string("TypeConversions", "TypeConversion.c")[0])
+ # These utility functions are assumed to exist and used elsewhere.
+ PyrexTypes.c_long_type.create_to_py_utility_code(env)
+ PyrexTypes.c_long_type.create_from_py_utility_code(env)
+
code.put(Nodes.branch_prediction_macros)
code.putln('')
code.putln('static PyObject *%s;' % env.module_cname)