This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
test.c:7: warning: integer constant is too large for "long" type
for things like this:
#define LONGLONGMACRO 1099511628211 printf("%lld\n", LONGLONGMACRO);
While I could append "LL" to the constant (with apparently some
portability problems for the MSVC compiler, argh), it has been stated to
me that c99 should promote the type of the constant to something that it
will fit into.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |