Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2005-08-08
20:57 • Closed ticket [1237593fff]: broken intsAre64bit constraint plus 5 other chan... artifact: a84c81652d user: dgp
2005-07-14
01:23 • Ticket [1237593fff]: 4 changes artifact: 8425893740 user: dgp
01:21 • Ticket [1237593fff]: 4 changes artifact: d003ef7588 user: dgp
01:19 • Ticket [1237593fff]: 4 changes artifact: 68bccd79eb user: dgp
2005-07-13
14:52 • New ticket [1237593fff]. artifact: 48edaf463d user: dgp

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.