Bug 21535 – dtoh: Insufficient size_t/ptrdiff_t detection

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-01-09T17:27:26Z
Last change time
2024-12-13T19:13:55Z
Assigned to
No Owner
Creator
kinke
Moved to GitHub: dmd#18015 →

Comments

Comment #0 by kinke — 2021-01-09T17:27:26Z
In root/bitarray.d: struct BitArray { alias Chunk_t = size_t; enum ChunkSize = Chunk_t.sizeof; enum BitsPerChunk = ChunkSize * 8; size_t len; size_t *ptr; } In frontend.h: struct BitArray { typedef uint64_t Chunk_t; enum : uint64_t { ChunkSize = 8LLU }; enum : uint64_t { BitsPerChunk = 64LLU }; size_t len; uint64_t* ptr; } `Chunk_t` and `ptr` probably can and should be fixed; not sure about the 2 size-related enums.
Comment #1 by robert.schadek — 2024-12-13T19:13:55Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18015 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB