aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/libpyside
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-06-24 11:47:03 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-06-26 15:55:13 +0000
commitb2092a477ff0635c7185037f89361bc6b1c35a36 (patch)
tree2c369aadc5c75f3880e80ca6a50024b6e5ebf773 /sources/pyside2/libpyside
parent41b49a16d62f5c759e4f8053cefa10b3f0390b31 (diff)
Change the return type of the hash functions to Py_ssize_t
This is the proper type and makes it clear that it it is not related to Qt's hash type (uint in Qt 5, size_t in Qt 6). Task-number: PYSIDE-904 Change-Id: I4ce0f5c845c06e5dcd0ad9744a16a995017987ef Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside2/libpyside')
-rw-r--r--sources/pyside2/libpyside/pyside.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside2/libpyside/pyside.h b/sources/pyside2/libpyside/pyside.h
index 95abaeeb1..c1a298cc8 100644
--- a/sources/pyside2/libpyside/pyside.h
+++ b/sources/pyside2/libpyside/pyside.h
@@ -62,7 +62,7 @@ PYSIDE_API void init(PyObject *module);
* Hash function used to enable hash on objects not supported on native Qt library which has toString function.
*/
template<class T>
-inline uint hash(const T& value)
+inline Py_ssize_t hash(const T& value)
{
return qHash(value.toString());
}