Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8b12baab62c5ea831d6b532973f3d637aebfd9940ceb5d797cbc7b8f9e8990ec
Ticket: 0d78177f20f8d1ae835446853338714b256c06cd
unsigned use of Tcl_ObjPrintf() doesn't work as expected
User & Date: jan.nijtmans on 2024-02-01 21:09:57
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    Running
    <pre>
        Tcl_ObjPrintf(interp, "%lu", 18446744073709551615UL)
    </pre>
    on a 64-bit platform gives:
    <pre>
        Unable to format "%lu" with supplied arguments: -1
    </pre>
    
    The problem is in function AppendPrintfToObjVA()'s use of va_arg(): it generates a negative Tcl_WideInt in this case.
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "jan.nijtmans"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0c50e5320704d174412e57b873d8932de15303e0"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "jan.nijtmans"
  14. subsystem changed to: "48. Number Handling"
  15. title changed to:
    unsigned use of Tcl_ObjPrintf() doesn't work as expected
    
  16. type changed to: "Bug"