d malloc
anonymous via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Aug 8 10:44:28 PDT 2014
On Friday, 8 August 2014 at 17:07:37 UTC, seany wrote:
> And as discussed earlier, I was trying to save the pointers in
> an ulong (which is same as size_t or ptr_t, those are aliased)
(when compiling for x86-64 that is)
Generally, casting pointers to size_t is a horrible idea. Why
can't you at least go with void*?
> array, but both addresses 7ff11330eeb0 and 7ff11330ed00 is
> saved as 140733974163440.
>
> What do I do?
Please show a proper self-contained test-case. That is, the code
should compile as is, and show the problem (e.g. failing asserts,
strange output).
More information about the Digitalmars-d-learn
mailing list