Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d750af0b42826a3a531e36aac71527a88ac6247e
Ticket: 1710132fffffffffffffffffffffffffffffffff
[expr int(9...9)] returns -1 ... Is this a bug?
User & Date: afredd on 2007-04-30 15:35:16
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Consider,
    
    % info pat
    8.5a6
    % expr int(9999999999999999999999999999999999999999999999)
    -1
    
    but
    
    % info pat
    8.4.14
    % expr int(9999999999999999999999999999999999999999999999)
    integer value too large to represent
    
    
    Also get similar behaviour with wide().
    
    Judging from the code the new behaviour should be
    to return the result that is the bottom
    sizeof(the-relevent-C-integer-type) bits of the
    argument (ExprIntFunc), but the result is getting set
    to -1. mp_mod_2d() looks a possible culprit.
    
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "afredd"
  10. subsystem changed to: "48. Number Handling"
  11. title changed to: "[expr int(9...9)] returns -1 ... Is this a bug?"
  12. type changed to: "Bug"