diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-22 17:34:07 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-22 18:12:53 -0300 |
commit | 14a56fd8500a8746bcc78c2b1cb0683e7de8010a (patch) | |
tree | 001875b4c80d74ff92c4a201605278bcae67ebaf /tests | |
parent | 2650f48bf987b3fb7bd80cbfaef9f9a993d32999 (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.xml | 2 |
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 < 0 || _i >= %CPPSELF.size()) { + if (_i < 0 || _i >= static_cast<Py_ssize_t>(%CPPSELF.size())) { PyErr_BadArgument(); return 0; } else { |