[erlang-questions] strange definition of enif_get_uint64

Caragea Silviu silviu.cpp@REDACTED
Wed Aug 28 23:30:36 CEST 2019


Hello,

On a Mac OS 10.13.6 x64 in the osx headers the uint_64_t is defined as:

#ifndef _UINT64_T
#define _UINT64_T
typedef unsigned long long uint64_t;
#endif /* _UINT64_T */

But NIF function enif_get_uint64 is defined as

#  define enif_get_uint64 enif_get_ulong

which accepts an unsigned long

Any idea why is like this ?

Silviu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190829/0df62fc4/attachment.htm>


More information about the erlang-questions mailing list