Overview
| Artifact ID: | 27ec0c714c70df02176a82d0a2442569873dfb6b |
|---|---|
| Ticket: | 218220ffffffffffffffffffffffffffffffffff
expr doesn't always "do the right thing" with signed vs. uns |
| User & Date: | nobody on 2000-10-26 00:54:39 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 2584 Bug Version: 8.2 SubmitDate: '1999-08-20' LastModified: '2000-04-03' Severity: LOW Status: Closed Submitter: hobbs ChangedBy: hobbs OS: All FixedDate: '2000-10-25' ClosedDate: '2000-04-03' In the following: (tkcon) 49 % expr 2147483647 2147483647 (tkcon) 50 % expr 2147483648 -2147483648 (tkcon) 51 % expr 2147483649 -2147483647 We are getting "undesirable" results. Should check and see what a true 64 bit OS does. This may be "undesirable", but it is expected on 32bit int systems. 64bit systems will just wrap at a much larger value. It was discussed at an earlier point whether Tcl should wrap or complain instead, and it was decided that wrapping is "better" (after all, that's what C does too). -- 04/03/2000 hobbs
- foundin changed to: "obsolete: 8.2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to:
expr doesn't always "do the right thing" with signed vs. uns
- type changed to: "RFE"