Skip to content
Tcl Source Code View Ticket
Login

View Ticket

[scan _ %ld] 64-bit issue

Closed / Fixed1011860fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-08-18 23:40:05
On a system where
TCL_WIDE_INT_IS_LONG:

% scan 300000000  %ld
300000000
% scan 3000000000 %ld
-1294967296
% scan 30000000000 %ld
30000000000

The attached patch corrects
to the expected %ld scanning
behavior, producing a wide integer.

This also corrects failing tests
clock-6.7 and clock-7.7 on those
platforms.

Patch should also apply to the HEAD.
dgpplain2004-08-19 06:40:05
File Added - 98337: scan.patch
dgp Ticket [1011860fff]: 1 change [History diff]2004-08-19 13:09:32
dkf Closed ticket [1011860fff]. [History diff]2004-08-20 04:15:48
dkfplain2004-08-20 04:15:49
Logged In: YES 
user_id=79902

Fixed in HEAD and 8.4 branch; thanks!
Log in (anonymous is fine) to add a comment.

Attachments: