#define problem

#define MAX_PRESET 4000000000

When I do this the compiler keeps screaming about how it is so large it is
unsigned (decimal constant so large it is unsigned). Is there anyway for the
compiler to not warn me about this and assume it is unsigned anyway? not a
critical problem just annoying every time I compile.

I’m running QNX 6.2.0 PE

Scott

Well the compiler is telling you that 4000000000 is greater than a signed
int can hold, so it has to be unsigned (which you didn’t specify in your
constant).

#define 4000000000U is what you want.

-Adam

Scott A. <scott.anderson@fkilogistex.com> wrote in message
news:b76v2j$csv$1@inn.qnx.com

#define MAX_PRESET 4000000000

When I do this the compiler keeps screaming about how it is so large it is
unsigned (decimal constant so large it is unsigned). Is there anyway for
the
compiler to not warn me about this and assume it is unsigned anyway? not a
critical problem just annoying every time I compile.

I’m running QNX 6.2.0 PE

Scott


\