fix ifdef
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8053 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d81c62a80d
commit
f6a552d273
1 changed files with 1 additions and 1 deletions
|
|
@ -205,7 +205,7 @@ SWIGINTERNINLINE int
|
|||
SWIG_CanCastAsInteger(double *d, double min, double max) {
|
||||
double x = *d;
|
||||
if (min <= x && x <= max) {
|
||||
%#ifndef SWIG_HAS_NO_RINT
|
||||
%#ifdef SWIG_HAS_NO_RINT
|
||||
/* Use the python mechanism to round, or so */
|
||||
double rd = (x < 0) ? ceil(x) : floor(x);
|
||||
%#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue