Binary serialization of a struct

Daniel Kozak kozzi11 at gmail.com
Fri Dec 8 10:07:50 UTC 2017


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 at 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)
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20171208/205e4432/attachment-0001.html>


More information about the Digitalmars-d-learn mailing list