summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2009-01-08 19:20:51 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2009-01-08 19:20:51 +0000
commite2679a6fd307b5927b911fe9b06485a49cb12608 (patch)
tree848d1cbee39531465fa3ffa0e84de85a657946eb
parenta1fdbfd28238d1a2bf914b98e9708605999cb12e (diff)
downloadswig-e2679a6fd307b5927b911fe9b06485a49cb12608.tar.gz
correct return type for PyUnicode_GetSize
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11041 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r--Lib/python/pywstrings.swg2
-rw-r--r--Lib/ruby/rubywstrings.swg2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/python/pywstrings.swg b/Lib/python/pywstrings.swg
index 4161dcb0f..7c36f248d 100644
--- a/Lib/python/pywstrings.swg
+++ b/Lib/python/pywstrings.swg
@@ -17,7 +17,7 @@ SWIG_AsWCharPtrAndSize(PyObject *obj, wchar_t **cptr, size_t *psize, int *alloc)
}
%#endif
if (isunicode) {
- int len = PyUnicode_GetSize(obj);
+ Py_ssize_t len = PyUnicode_GetSize(obj);
if (cptr) {
*cptr = %new_array(len + 1, wchar_t);
PyUnicode_AsWideChar((PyUnicodeObject *)obj, *cptr, len);
diff --git a/Lib/ruby/rubywstrings.swg b/Lib/ruby/rubywstrings.swg
index 0cf9d7ed9..862928c95 100644
--- a/Lib/ruby/rubywstrings.swg
+++ b/Lib/ruby/rubywstrings.swg
@@ -29,7 +29,7 @@ SWIG_AsWCharPtrAndSize(VALUE obj, wchar_t **cptr, size_t *psize, int *alloc)
// }
// }
// if (ok) {
-// int len = PyUnicode_GetSize(obj);
+// Py_ssize_t len = PyUnicode_GetSize(obj);
// rb_notimplement();
// if (cptr) {
// *cptr = %new_array(len + 1, wchar_t);