Overview
| Artifact ID: | 773188c939de0d75666c071e453b199a149192d0 |
|---|---|
| Ticket: | 1965787fffffffffffffffffffffffffffffffff
8.5.2 "tell" returns neg 32-bit value for positions > 2GB |
| User & Date: | ferrieux on 2008-05-23 04:36:21 |
Changes
- icomment:
File Added - 278728: wideseek.patch Logged In: YES user_id=496139 Originator: NO Found and fixed (attached patch). The problem is the sign-extending int32->int64 conversion Tcl_LongAsWide, done on the low-order part of the tell value, which is a signed int32. To circumvent this I have replaced the use of the Tcl_LongAsWide macro by the more explicit cast: ((Tcl_WideInt)((unsigned)value)) Test suite passed. This should work on 64-bit Windows, though I have now way to check. Also notice that generating a test case is not easy since a file slightly over 2G is neede :-( File Added: wideseek.patch
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"