Mercurial > pytave
changeset 105:81432840e1c0
Temporary hack to workaround failure to compile long long support
* octave_to_python.cc (pytave::create_sint_array): Change template
parameter to "long" for now, does not compile with "long long".
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Tue, 14 Apr 2015 07:32:19 -0400 |
parents | 6450086b1934 |
children | 896fdc369789 |
files | octave_to_python.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/octave_to_python.cc Tue Apr 14 07:24:50 2015 -0400 +++ b/octave_to_python.cc Tue Apr 14 07:32:19 2015 -0400 @@ -182,7 +182,7 @@ // Numpy is kind enough to provide us with the old-style defines. else if (bytes == sizeof(long long)) { boost::integral_constant<bool, bytes == sizeof(long long) && bytes != sizeof(int)> inst; - return create_array<long long, CLASS>(value, PyArray_LONGLONG, inst); + return create_array<long, CLASS>(value, PyArray_LONGLONG, inst); } else if (bytes == sizeof(long)) { boost::integral_constant<bool, bytes == sizeof(long) && bytes != sizeof(int) && bytes != sizeof(long long)> inst;