Skip to content
Tcl Source Code History Of Ticket 218988
Login

History Of Ticket 218988

Artifacts Associated With Ticket 218988

  1. Ticket change [5ebb1583c3] (rid 115678) by nobody on 2000-10-26 01:08:59:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 3652 Bug
      Version: 8.2.2
      SubmitDate: '1999-11-23'
      LastModified: '1999-11-24'
      Severity: LOW
      Status: Released
      Submitter: techsupp
      ChangedBy: hobbs
      OS: All Unix
      OSVersion: Tru64Unix 4.0F
      Machine: AlphaServer
      FixedDate: '1999-11-24'
      FixedInVersion: 8.3b1
      ClosedDate: '2000-10-25'
      
      
      Name: kazuro furukawa
      
      
      
      Comments:
      
      Since this patch does not do 
      
      any harm on 32bit machines, 
      
      I hope this patch is applied in 
      
      the core.
      
      
      
      ReproducibleScript:
      
      % lsort -integer "1234567890 12345678901"
      
      
      
      ObservedBehavior:
      
      "integer value too large to represent as non-long integer"
      
      
      
      DesiredBehavior:
      
      64bit integers should be handled on 
      
      64bit machines.
      
      
      
      Patch:
      
      % diff -u tclCmdIL.c.org tclCmdIL.c | more
      
      --- tclCmdIL.c.org      Wed Sep 22 13:12:46 1999
      
      +++ tclCmdIL.c  Mon Nov 15 14:46:35 1999
      
      @@ -2786,10 +2786,14 @@
      
              order = DictionaryCompare(
      
                      Tcl_GetString(objPtr1), Tcl_GetString(objPtr2));
      
           } else if (infoPtr->sortMode == SORTMODE_INTEGER) {
      
      -       int a, b;
      
      +       /*
      
      +        * for 64bit machines, integer comparison must be carried 
      
      +        * with long integer. k.furukawa.
      
      +        */
      
      +       long a, b;
      
       
      
      -       if ((Tcl_GetIntFromObj(infoPtr->interp, objPtr1, &a) != TCL_OK)
      
      -               || (Tcl_GetIntFromObj(infoPtr->interp, objPtr2, &b)
      
      +       if ((Tcl_GetLongFromObj(infoPtr->interp, objPtr1, &a) != TCL_OK)
      
      +               || (Tcl_GetLongFromObj(infoPtr->interp, objPtr2, &b)
      
                      != TCL_OK)) {
      
                  infoPtr->resultCode = TCL_ERROR;
      
                  return order;
      
      
      
      PatchFiles:
      
      tclCmdIL.c
      
      
      
      
      
      Added to 8.3b1 core. 
      -- 11/24/1999 hobbs
      
    4. foundin initialized to: "obsolete: 8.2.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "10. Objects"
    10. title initialized to: "64bit integer support for lsort"
    11. type initialized to: "Bug"
  2. Ticket change [4af0e1ceca] (rid 126620) by welch on 2000-10-26 08:33:07:

    1. closedate changed to: "2000-10-26T01:33:07"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"