Author: Maciej Fijalkowski <[email protected]>
Branch: vmprof
Changeset: r76145:2f9e91643e10
Date: 2015-02-25 19:56 +0200
http://bitbucket.org/pypy/pypy/changeset/2f9e91643e10/

Log:    fix?

diff --git a/rpython/translator/c/node.py b/rpython/translator/c/node.py
--- a/rpython/translator/c/node.py
+++ b/rpython/translator/c/node.py
@@ -126,8 +126,9 @@
         return self.prefix + name
 
     def verbatim_field_name(self, name):
-        assert name.startswith('c_')   # produced in this way by rffi
-        return name[2:]
+        if name.startswith('c_'):   # produced in this way by rffi
+            return name[2:]
+        return name
 
     def c_struct_field_type(self, name):
         return self.STRUCT._flds[name]
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to