Permalink
Browse files

[bug] python codegenerator template was casting all constants to ints.

  • Loading branch information...
1 parent 84e1b97 commit bc961fd9e1fdf7a0855965751cc770642b59c356 Jim Carroll committed Apr 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/interfaces/python/PythonSwig.cpp.template
View
2 xbmc/interfaces/python/PythonSwig.cpp.template
@@ -664,7 +664,7 @@ namespace PythonBindings
String pyCall =
(it.@type == 'int' || it.@type == 'long' || it.@type == 'unsigned int' || it.@type == 'unsigned long' || it.@type == 'bool') ?
'PyModule_AddIntConstant' : 'PyModule_AddStringConstant' %>
- ${pyCall}(module,"${it.@sym_name}",(int)${it.@value}); <%
+ ${pyCall}(module,"${it.@sym_name}",${it.@value}); <%
} %>
}

0 comments on commit bc961fd

Please sign in to comment.