Tcl Source Code

View Ticket
Login
Ticket UUID: 1011860
Title: [scan _ %ld] 64-bit issue
Type: Bug Version: obsolete: 8.4.7
Submitter: dgp Created on: 2004-08-18 23:40:05
Subsystem: 23. [scan] Assigned To: dkf
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-08-20 04:15:49
Resolution: Fixed Closed By: dkf
    Closed on: 2004-08-19 21:15:49
Description:
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.
User Comments: dkf added on 2004-08-20 04:15:49:
Logged In: YES 
user_id=79902

Fixed in HEAD and 8.4 branch; thanks!

dgp added on 2004-08-19 06:40:05:

File Added - 98337: scan.patch

Attachments: