aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sources/shiboken6/libshiboken/helper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken6/libshiboken/helper.h b/sources/shiboken6/libshiboken/helper.h
index 7e46f3d93..1a2c2e29d 100644
--- a/sources/shiboken6/libshiboken/helper.h
+++ b/sources/shiboken6/libshiboken/helper.h
@@ -84,8 +84,8 @@ class AutoArrayPointer
AutoArrayPointer &operator=(const AutoArrayPointer &) = delete;
AutoArrayPointer &operator=(AutoArrayPointer &&) = delete;
- explicit AutoArrayPointer(int size) { data = new T[size]; }
- T &operator[](int pos) { return data[pos]; }
+ explicit AutoArrayPointer(ssize_t size) { data = new T[size]; }
+ T &operator[](ssize_t pos) { return data[pos]; }
operator T *() const { return data; }
~AutoArrayPointer() { delete[] data; }
private: