[Tcl] Fix handling of long long on 32-bit platforms
Fixes https://sourceforge.net/p/swig/bugs/977/ reported by Vera and Kjell Wooding. Closes #2331
This commit is contained in:
parent
de5ce08a7d
commit
06d375cdab
4 changed files with 38 additions and 25 deletions
24
Examples/test-suite/tcl/integers_runme.tcl
Normal file
24
Examples/test-suite/tcl/integers_runme.tcl
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
if [ catch { load ./integers[info sharedlibextension] integers} err_msg ] {
|
||||
puts stderr "Could not load shared object:\n$err_msg"
|
||||
}
|
||||
|
||||
set val 3902408827
|
||||
if {[signed_long_identity $val] != $val} {
|
||||
puts stderr "Runtime test 1 failed"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if {[unsigned_long_identity $val] != $val} {
|
||||
puts stderr "Runtime test 2 failed"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if {[signed_long_long_identity $val] != $val} {
|
||||
puts stderr "Runtime test 3 failed"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if {[unsigned_long_long_identity $val] != $val} {
|
||||
puts stderr "Runtime test 4 failed"
|
||||
exit 1
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue