summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/swig/numpy.i11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/swig/numpy.i b/tools/swig/numpy.i
index b8fdaeb1f..5f2aa0a5d 100644
--- a/tools/swig/numpy.i
+++ b/tools/swig/numpy.i
@@ -485,7 +485,7 @@
{
int i;
int success = 1;
- int len;
+ size_t len;
char desired_dims[255] = "[";
char s[255];
char actual_dims[255] = "[";
@@ -3139,6 +3139,15 @@
%numpy_typemaps(unsigned long long, NPY_ULONGLONG, int)
%numpy_typemaps(float , NPY_FLOAT , int)
%numpy_typemaps(double , NPY_DOUBLE , int)
+%numpy_typemaps(int8_t , NPY_INT8 , int)
+%numpy_typemaps(int16_t , NPY_INT16 , int)
+%numpy_typemaps(int32_t , NPY_INT32 , int)
+%numpy_typemaps(int64_t , NPY_INT64 , int)
+%numpy_typemaps(uint8_t , NPY_UINT8 , int)
+%numpy_typemaps(uint16_t , NPY_UINT16 , int)
+%numpy_typemaps(uint32_t , NPY_UINT32 , int)
+%numpy_typemaps(uint64_t , NPY_UINT64 , int)
+
/* ***************************************************************
* The follow macro expansion does not work, because C++ bool is 4