diff options
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 { |