[Ruby] Fix to handle FIXNUM values greater than MAXINT passed for a double parameter.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11320 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
75198b86bf
commit
45611ebd57
3 changed files with 8 additions and 1 deletions
|
|
@ -50,6 +50,9 @@ end
|
|||
|
||||
raise RuntimeError if fail != 1
|
||||
|
||||
# Test a number which won't fit in a 32 bit integer and is represented
|
||||
# as a FIXNUM by Ruby.
|
||||
raise RuntimeError if val_double(51767811298) != 51767811298
|
||||
|
||||
raise RuntimeError if val_double_2(1.0) != 4.0
|
||||
raise RuntimeError if val_double_2(1) != 4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue