[pypy-commit] pypy vmprof: fix?
fijal
noreply at buildbot.pypy.org
Wed Feb 25 18:56:57 CET 2015
Author: Maciej Fijalkowski <fijall at gmail.com>
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]
More information about the pypy-commit
mailing list