broken intsAre64bit constraint
Closed / Out of Date1237593fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-07-13 14:52:42
The test constraint intsAre64bit has
the wrong value on LP64 systems,
where it is set to true, although
the C "int" type is 32 bit.
The error is rooted in an assumption
that the [expr {int(.)}] function will
truncate to the range of the C
"int" type. It does not do that.
It truncates to the range of the
"int" Tcl_ObjType, which is the
C "long" type.
Ick.
dgpplain2005-07-14 01:19:18
Logged In: YES user_id=80530 tclguy suggests that a [largestInt] command elsewhere in the test suite may be of help.
dgpplain2005-07-14 01:21:26
Logged In: YES user_id=80530 Intent here is to find out the range of acceptable values for the Tcl_GetInt() routine in order to use the approriate tests among get-1.7 - get 1.14.
dgpplain2005-07-14 01:23:10
Logged In: YES user_id=80530 And hopefully to find out those values without making a call to Tcl_GetInt(FromObj) to do it. Doesn't help much to test a routine against itself.
dgp Closed ticket [1237593fff].
[History diff]2005-08-08 20:57:13
Log in (anonymous is fine) to add a comment.