Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit bc961fd9e1fdf7a0855965751cc770642b59c356 1 parent 84e1b97
Jim Carroll authored
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}); <%
} %>
}
Please sign in to comment.
Something went wrong with that request. Please try again.