You should use size_t instead of ulong, but on 32bit you would have still problem because you are trying assign 2^32 which is too big to hold in 32bit

On Thu, Dec 7, 2017 at 11:42 PM, kdevel via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote:
On Tuesday, 19 September 2017 at 06:32:52 UTC, Nordlöw wrote:
I want something straight forward without allot of plumbing on my end.

https://github.com/msgpack/msgpack-d

I can't unittest my 32-bit code:

$ MODEL=32 make -f posix.mak unittest
[...]
src/msgpack/packer.d(1139): Error: function core.stdc.stdlib.malloc (uint size) is not callable using argument types (ulong)