Fix enum handling in modpython callbacks params.

This commit is contained in:
Alexey Sokolov authored and Kyle Fuller committed 2011-08-21 13:34:23 +01:00
1 parent b2d8f2ed62
commit 289cfa5eff
1 file changed
+3
+3
View File
@@ -279,6 +279,9 @@ while (<$in>) {
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',