Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: af0ae9169028ad6cfe0735758c8b7ecb6821622caf6ace99c9c9feb927e75e5f
Ticket: 45ddcfc3b1944869ffb1b3eca0250dc452d79537
Tcl_WideInt might be > long long (64-bit)
User & Date: jan.nijtmans on 2021-01-08 10:22:58
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    According to the comments in tcl.h [https://core.tcl-lang.org/tcl/artifact?ln=390-422&name=4010d6ce1800f5a9], Tcl_WideInt can be redefined using TCL_WIDE_INT_TYPE to be any type >= 64 bits. In fact, doing that (modern gcc has __int128), a lot of test-cases fail. The TIP #592 implementation already improves things, by using "long long" instead of Tcl_WideInt, but - still - a lot of testcases fail because the core code assumes in a lot of places that Tcl_WideInt is _exactly_ 64-bits.
    
    This can only be fixed in 8.7, because then we can assume presence of the C99 "long long".
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "jan.nijtmans"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "jan.nijtmans"
  13. subsystem changed to: "48. Number Handling"
  14. title changed to: "Tcl_WideInt might be > long long (64-bit)"
  15. type changed to: "Bug"