htod converts C long to int?

jdrewsen jdrewsen at nospam.com
Sun Jun 12 13:47:48 PDT 2011


Den 12-06-2011 20:05, David Nadlinger skrev:
> While having a look at etc.curl which has a »converted by htod« comment
> in its header, I noticed that values having type »long« in the original
> C headers are declared as »int« there – shouldn't this rather be c_long
> from core.stdc.config to avoid problems on non-LLP64 (i.e. non-Windows)
> 64 bit systems? Does htod generally behave like this?

I just ran htod without any special tricks so I guess this is the 
default behavior.

I will fix this asap.

thx.
/Jonas


More information about the Digitalmars-d mailing list