Stunt compiler warning

0 views
Skip to first unread message

Tim van Dijen (Goblin)

unread,
Jun 21, 2015, 7:55:22 AM6/21/15
to MOO-...@googlegroups.com
Hello list,

The following compiler warning annoyed the crap out of me:
json.cc:224:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]

Because the actual minint in C for a 32-bit integer appears to be -2147483647, the compiler raises this warning.
It does however fix it properly, so really no big deal..

But as I said, it anoyed the crap out of me, so I did a little research on how to get rid of this and I believe that in structures.h we should define MININT as:
#define MININT  ((int32) -2147483648UL)

Any thoughts on this are appreciated.

Cheers, Tim
Reply all
Reply to author
Forward
0 new messages