summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-10-04 22:02:41 +0200
committerAlon Levy <alevy@redhat.com>2010-12-06 18:09:15 +0200
commitbeca39aa87e5644c6d8210860037cb2220256b7a (patch)
tree108e514f10de78f8342f0b8dc6d274d9ca344f00
parentb2f1b80a634cdda2a86d48ee7b823d287371f3fe (diff)
downloadspice-beca39aa87e5644c6d8210860037cb2220256b7a.tar.gz
spice-beca39aa87e5644c6d8210860037cb2220256b7a.tar.xz
spice-beca39aa87e5644c6d8210860037cb2220256b7a.zip
spice codegen: fix copy-o, no such variable value
-rw-r--r--python_modules/ptypes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py
index 0ae57eca..9c4b7def 100644
--- a/python_modules/ptypes.py
+++ b/python_modules/ptypes.py
@@ -240,7 +240,7 @@ class EnumBaseType(Type):
def c_enumname_by_name(self, name):
if self.has_attr("prefix"):
- return self.attributes["prefix"][0] + self.names[value]
+ return self.attributes["prefix"][0] + name
return codegen.prefix_underscore_upper(self.name.upper(), name)
def is_primitive(self):