Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 236dd5f19fa8f6ac2f34f186ef424d72813f6f7b
Ticket: 1483802fffffffffffffffffffffffffffffffff
lsort inconsistant behavior for negative value of -index
User & Date: mic42 on 2006-08-02 15:11:12
Changes

  1. icomment:
    Logged In: YES 
    user_id=302287
    
    This is an artifact from using TclGetIntFromIndex() on the
    index, which uses negative indices to indicate an end
    relative index.
    
    As TclGetIntFromIndex() allows negative values for indices
    this is would probably either require a specialized
    TclGetIntFromIndex() which guards against negative indices
    other than end relative indices..., or one extra call to
    Tcl_GetIntFromObj() first (which is also done at the
    beginning of TclGetIntFromIndex()), with a check for
    negative values.
    
    
    
    
  2. login: "mic42"
  3. mimetype: "text/plain"
  4. username: "mic42"