Bug 24660 – atomic_wchar_t has wrong size on Posix

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2024-07-13T12:20:30Z
Last change time
2024-07-13T16:46:19Z
Keywords
pull
Assigned to
No Owner
Creator
Tim

Comments

Comment #0 by tim.dlang — 2024-07-13T12:20:30Z
atomic_wchar_t currently has size 2 on all platforms, but should have the same size as wchar_t, which is platform dependent. The problem was found by comparing type sizes in druntime with type sizes found with ImportC: https://github.com/dlang/dmd/pull/16571
Comment #1 by dlang-bot — 2024-07-13T12:22:17Z
@tim-dlang created dlang/dmd pull request #16688 "Fix bugzilla 24660 - atomic_wchar_t has wrong size on Posix" fixing this issue: - Fix bugzilla 24660 - atomic_wchar_t has wrong size on Posix https://github.com/dlang/dmd/pull/16688
Comment #2 by dlang-bot — 2024-07-13T16:46:19Z
dlang/dmd pull request #16688 "Fix bugzilla 24660 - atomic_wchar_t has wrong size on Posix" was merged into master: - b86b220f6fa005a7e0429b0a2ea4d25faef461b9 by Tim Schendekehl: Fix bugzilla 24660 - atomic_wchar_t has wrong size on Posix https://github.com/dlang/dmd/pull/16688