Permalink
Browse files

Fix enum output

  • Loading branch information...
1 parent a810cd2 commit 6ccd860254eb4265ebd2f632c01b49691482dbd3 @robbywalker robbywalker committed Jul 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/fastpb/template/module.jinjacc
View
2 src/fastpb/template/module.jinjacc
@@ -83,7 +83,7 @@ static PyObject *
fastpb_convert{{ TYPE.ENUM }}(int value)
{
// TODO(robbyw): Check EnumName_IsValid(value)
- return PyLong_FromLong(value);
+ return PyInt_FromLong(value);
}
{% for enum in enums %}

0 comments on commit 6ccd860

Please sign in to comment.