Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 17b3ecc1354076b41294775c5821cf9c9d9b6b1f
Ticket: 1710132fffffffffffffffffffffffffffffffff
[expr int(9...9)] returns -1 ... Is this a bug?
User & Date: afredd on 2007-04-30 23:28:40
Changes

  1. closedate changed to: "2007-04-30T16:28:40"
  2. closer changed to: "afredd"
  3. icomment:
    Logged In: YES 
    user_id=1386588
    Originator: YES
    
    Doh... ought to have tried some other input numbers!
    
    I was only using long numbers of the form 99...9
    and these happen to be be = N*(2**32) + (2**32 - 1)
    ie. when int()'d they should be -1.
    Adding another 9 to the test number is same as
    multiply by 10 and add 9. Add (-1 * 10 + 9) == -1
    
    Funny :-)
    
    
    
    
  4. login: "afredd"
  5. mimetype: "text/plain"
  6. status changed to: "Closed"
  7. username: "afredd"