[asterisk-users] ((uint64_t)1 << 35) is zero! was: Prevent Dial if any extension is busy

Leif Neland leifn at neland.dk
Mon Nov 30 08:33:53 CST 2009


Leif Neland wrote:
>
> #define OPT_PEER_H           ((uint64_t)1 << 34)
> #define OPT_SINGLE_BUSY      ((uint64_t)1 << 35)
>
> but all these constants have the value zero!
>
> I'm compiling on FreeBSD, asterisk seems to work anyway...
>
> Whats going on?
>
doh... 64 bits doesn't fit in %d
%llu works better.

Leif

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091130/37ee4b3c/attachment.htm 


More information about the asterisk-users mailing list