Overview
| Artifact ID: | 1a1794fa68091fa4429b7cb5671942dbd804b7ae |
|---|---|
| Ticket: | 217918ffffffffffffffffffffffffffffffffff
binary scan problem with 16 bit integers > 0x8000 |
| User & Date: | nobody on 2000-10-26 00:45:58 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 3229 Bug Version: 8.0.4 SubmitDate: '1999-10-28' LastModified: '1999-11-08' Severity: MED Status: Closed Submitter: techsupp ChangedBy: hobbs RelatedBugIDs: 3466 OS: Linux Machine: Other FixedDate: '2000-10-25' ClosedDate: '1999-11-08' Name: Bob Findlay ReproducibleScript: #!/usr/bin/tclsh set bob1 0x8000 set bob2 [binary format "s1" $bob1] binary scan $bob2 s1 bob3 puts stdout [format "bob1=%X bob3=%X" $bob1 $bob3] ObservedBehavior: It seems once the lead bit in a 16 bit integer is set the binary scan command seems to prepend the result with 0xffff This does not seem like the correct behavior. DesiredBehavior: I would have expected that binary scan would return with the 16 bit value without the prepended 0xffff - foundin changed to: "obsolete: 8.0.4"
- 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: "binary scan problem with 16 bit integers > 0x8000"
- type changed to: "Bug"