| Ticket UUID: | 45ddcfc3b1944869ffb1b3eca0250dc452d79537 | ||
| Title: | Tcl_WideInt might be > long long (64-bit) | ||
| Type: | Bug | Created on: | 2021-01-08 10:22:58 |
| Submitter: | jan.nijtmans | Assigned to: | nobody |
| Subsystem: | 48. Number Handling | Severity: | Minor |
| Priority: | 5 Medium | Last modified: | 2022-09-17 21:55:54 |
| Status: | Open | Closed by: | nobody |
| Resolution: | None | Closed on: | |
| Version: | 8.6 | ||
| Description: | ||||
|
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". | ||||
| User Comments: | ||||
chrstphrchvz added on 2022-09-17 21:55:54:
Subscribing in case of updates; I think this issue is possibly of interest to library/extension maintainers or other C API users. | ||||
