summaryrefslogtreecommitdiffstats
path: root/python_modules/ptypes.py
diff options
context:
space:
mode:
Diffstat (limited to 'python_modules/ptypes.py')
-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):