Permalink
Browse files

Fix enum handling in modpython callbacks params.

  • Loading branch information...
1 parent b2d8f2e commit 289cfa5eff386a6cb91ea99e881e22f8d055ccf7 Alexey Sokolov committed with Kyle Fuller Aug 13, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 modules/modpython/codegen.pl
@@ -279,6 +279,9 @@
when ('bool') {
say $out "Py_BuildValue(\"l\", (long int)$a->{var});";
}
+ when (/^E/) {
+ say $out "Py_BuildValue(\"i\", (int)$a->{var});";
+ }
default {
my %letter = (
'int' => 'i',

0 comments on commit 289cfa5

Please sign in to comment.