diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-01-30 09:52:02 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-01-30 09:23:38 +0000 |
commit | 470d7b4900af169abf1aa9306ebb30b4489f1dc3 (patch) | |
tree | c14efce665a04d721407f7aef97a2a753afb6ac4 /sources/pyside2/tests | |
parent | cebc32a588358851dd58dc0fc892e986dd263efb (diff) |
QtCore snippets: Fix warning about printf() format in generated code
Add a cast to int for value_length and slicelength, fixing:
qbytearray_wrapper.cpp:5288:158: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
PyErr_Format(PyExc_ValueError, "attempt to assign %s of size %d to extended slice of size %d",Py_TYPE(_value)->tp_name, value_length, slicelength);
Change-Id: I4bd2e5d43a26c73c21a6121b469f5ec1c76994b2
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources/pyside2/tests')
0 files changed, 0 insertions, 0 deletions