diff options
author | Olly Betts <olly@survex.com> | 2013-08-24 08:40:08 +1200 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2013-08-24 08:40:08 +1200 |
commit | 628b4710e5309379475f55c95a42e1cf21c9be87 (patch) | |
tree | 90aea72616f5d9e02cc0f1edd82f7eb447df9ff9 | |
parent | b477cb66be5739a0acc2c2de15e988187971ce40 (diff) | |
download | swig-628b4710e5309379475f55c95a42e1cf21c9be87.tar.gz |
[Python] Fix clang++ warning in generated wrapper code.
-rw-r--r-- | CHANGES.current | 3 | ||||
-rw-r--r-- | Source/Modules/python.cxx | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES.current b/CHANGES.current index cc2ce897d..584d5c3a2 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -5,6 +5,9 @@ See the RELEASENOTES file for a summary of changes in each release. Version 2.0.11 (in progress) ============================ +2013-08-23: olly + [Python] Fix clang++ warning in generated wrapper code. + 2013-08-07: wsfulton [Python] SF Patch #326 from Kris Thielemans - Remove SwigPyObject_print and SwigPyObject_str and make the generated wrapper use the default python implementations, which will fall back to repr diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 233f79bd6..94802e06d 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -3401,7 +3401,7 @@ public: printSlot(f, getSlot(n, "feature:python:tp_dict"), "tp_dict"); printSlot(f, getSlot(n, "feature:python:tp_descr_get"), "tp_descr_get", "descrgetfunc"); printSlot(f, getSlot(n, "feature:python:tp_descr_set"), "tp_descr_set", "descrsetfunc"); - Printf(f, " offsetof(SwigPyObject, dict), /* tp_dictoffset */\n"); + Printf(f, " (Py_ssize_t)offsetof(SwigPyObject, dict), /* tp_dictoffset */\n"); printSlot(f, tp_init, "tp_init", "initproc"); printSlot(f, getSlot(n, "feature:python:tp_alloc"), "tp_alloc", "allocfunc"); printSlot(f, "0", "tp_new", "newfunc"); |