#2307 Can't increment by wide amounts

obsolete: 8.4.2
closed-remind
6
2004-05-30
2003-04-28
No

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.)

Discussion

  • Donal K. Fellows

    • assigned_to: dkf --> hobbs
    • status: open --> closed-fixed
     
  • Donal K. Fellows

    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.

     
  • Donal K. Fellows

    Patch against HEAD

     
  • Don Porter

    Don Porter - 2004-01-19
    • status: closed-fixed --> open-fixed
     
  • Don Porter

    Don Porter - 2004-01-19
    • status: open-fixed --> open-remind
     
  • Don Porter

    Don Porter - 2004-01-19

    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

     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2004-01-19
    • assigned_to: hobbs --> dkf
    • priority: 5 --> 6
     
  • Don Porter

    Don Porter - 2004-01-20

    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.

     
  • Donal K. Fellows

    • status: open-remind --> closed-remind
     
  • Donal K. Fellows

    Logged In: YES
    user_id=79902

    Not backporting. It's a PITA and requires messing with the
    internal stubs table in a patch release.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks