-
-
Save robertwb/c0cc8f3708567700a56dba49d4c847d6 to your computer and use it in GitHub Desktop.
Attachment fix_parenthesis.patch for http://trac.cython.org/ticket/49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HG changeset patch | |
# User david@evans-2.local | |
# Date 1218808400 18000 | |
# Branch fix_parenthesis | |
# Node ID a4ddabf50a0f9adcc8ec5c9ef5d2d96eed24a8eb | |
# Parent 94b327b81f1653d9610b792351fb01854c8bedcf | |
Fix missing opening parenthesis. | |
diff -r 94b327b81f16 -r a4ddabf50a0f Cython/Compiler/ModuleNode.py | |
--- a/Cython/Compiler/ModuleNode.py Fri Aug 15 15:04:23 2008 +0200 | |
+++ b/Cython/Compiler/ModuleNode.py Fri Aug 15 08:53:20 2008 -0500 | |
@@ -422,7 +422,7 @@ | |
code.putln("#if PY_VERSION_HEX < 0x02060000") | |
code.putln(" #define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)") | |
code.putln(" #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)") | |
- code.putln(" #define Py_SIZE(ob) ((PyVarObject*)(ob))->ob_size)") | |
+ code.putln(" #define Py_SIZE(ob) (((PyVarObject*)(ob))->ob_size)") | |
code.putln(" #define PyVarObject_HEAD_INIT(type, size) \\") | |
code.putln(" PyObject_HEAD_INIT(type) size,") | |
code.putln(" #define PyType_Modified(t)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment