aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-02-22 17:34:07 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-02-22 18:12:53 -0300
commit14a56fd8500a8746bcc78c2b1cb0683e7de8010a (patch)
tree001875b4c80d74ff92c4a201605278bcae67ebaf /tests
parent2650f48bf987b3fb7bd80cbfaef9f9a993d32999 (diff)
Remove warning in injected code related to comparison between signed and unsigned integer expressions.
Reviewed by Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/samplebinding/typesystem_sample.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index b0435d759..0c1628146 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -902,7 +902,7 @@
</add-function>
<add-function signature="__getitem__" >
<inject-code class="target" position="beginning">
- if (_i &lt; 0 || _i >= %CPPSELF.size()) {
+ if (_i &lt; 0 || _i >= static_cast&lt;Py_ssize_t>(%CPPSELF.size())) {
PyErr_BadArgument();
return 0;
} else {