Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4ee43d5d5c4dc8f0f5521ba1646863f87a48311057ff0dda01e489c3ac26f148
Ticket: 3e0a2d99f365c035ce84ec9de1e3acd80c2e2c6c
[string first] failures on 32-bit platforms
User & Date: sebres on 2018-12-12 19:25:12
Changes

  1. icomment:
    First shot in [d7843f5d69] closes the issue, but introduces another problem:  `string first` can't return a value larger that INT_MAX (on x64 platform) anymore,
    and trunk is pointed in that direction.
    
    There is another fix [080ecbe60a] as branch [./timeline?r=fix-3e0a2d99f3-str-first-x86-x64|fix-3e0a2d99f3-str-first-x86-x64] solves it for both platform.
    
    BTW. As discussed on chat there are several another issues on 32-bit platform regarding the indices as well as [../tips/doc/trunk/tip/502.md|TIP#502]:
    
    - TclGetIntForIndexM seem to have a bug for cases like<br/>
      `string first a aaa 4294967295` because it results in 0 and not -1 on x86.
    
    - looks like unexpected result (esp. after TIP 502 got merged):<br/>
      `string last a aaa -1` or `string last a aaa end-5` produce 2<br/>
      I meant as opposite to `string first a aaa 5` and `string first a aaa end+1` (where both results to -1).
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"