diff --git a/modules/modpython/codegen.pl b/modules/modpython/codegen.pl index b9ea07cf..3b153f56 100644 --- a/modules/modpython/codegen.pl +++ b/modules/modpython/codegen.pl @@ -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',