Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Can't increment by wide amounts

Closed / Remind728838ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 23 years ago
Descriptionplain2003-04-28 11:06:25
You can't increment a value by a wide-int amount, which
is surprising.

Result should be wide if either (or both) the current
variable value and the added value are wide.  (The
default is not wide, of course.)
dkfplain2003-04-28 19:39:42
Logged In: YES 
user_id=79902

I've fixed this now in the HEAD with the attached patch. 
Let me know if I should backport the patch (which is
unfortunately rather large as I took the opportunity to tidy
a few other bits of code up) to the 8.4 branch.
dkfplain2003-04-28 19:39:43
File Added - 48950: incr.patch
dgp Open ticket [728838ffff]. [History diff]2004-01-20 03:16:07
dgpplain2004-01-20 03:16:08
Logged In: YES 
user_id=80530


I don't think this is working in 8.4.5.

% set v 2
2
% incr v 0xff00000001
3
% incr v [expr 0xff00000000]
3

re-open
hobbs Ticket [728838ffff]: 2 changes [History diff]2004-01-20 04:44:28
dgpplain2004-01-20 07:03:35
Logged In: YES 
user_id=80530


my mistake.   I misread the
earlier comments.  This bug
is fixed in 8.5.  A backport
for 8.4 is still pending.

You can re-close if you like,
or leave open as a reminder
about the backport.
dkfplain2004-05-30 19:44:59
Logged In: YES 
user_id=79902

Not backporting.  It's a PITA and requires messing with the
internal stubs table in a patch release.
Log in (anonymous is fine) to add a comment.

Attachments: