mirror of https://github.com/swig/swig
Correct infinity testcase
This commit is contained in:
parent
664c6cc81e
commit
42938dc520
|
@ -55,6 +55,7 @@ float use_infinity(float inf_val)
|
||||||
|
|
||||||
/* This will allow us to bind the real INFINITY value through SWIG via MYINFINITY. Use %rename to fix the name. */
|
/* This will allow us to bind the real INFINITY value through SWIG via MYINFINITY. Use %rename to fix the name. */
|
||||||
const double MYINFINITY = INFINITY;
|
const double MYINFINITY = INFINITY;
|
||||||
|
void initialise_MYINFINITY(void);
|
||||||
/* Use of float is intentional because the original bug was in the float conversion due to overflow checking. */
|
/* Use of float is intentional because the original bug was in the float conversion due to overflow checking. */
|
||||||
float use_infinity(float inf_val);
|
float use_infinity(float inf_val);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue