Discussion:
[stunnel-users] 'Integer constant too large' warnings in str.c
(too old to reply)
Guillermo Rodriguez Garcia
2016-05-09 09:16:09 UTC
Permalink
Hello,

Current stunnel (5.32) gives a bunch of warnings in str.c when the
CANARY_XXX and MAGIC_XXX constants are used, for example:

str.c:101: warning: integer constant is too large for 'long' type

Shouldn't these constants be declared with the 'LL' suffix instead of 'L' ?

#define CANARY_INITIALIZED 0x0000c0ded0000000LL
#define CANARY_UNINTIALIZED 0x0000abadbabe0000LL
#define MAGIC_ALLOCATED 0x0000a110c8ed0000LL
#define MAGIC_DEALLOCATED 0x0000defec8ed0000LL

Best regards,

Guillermo Rodriguez Garcia
***@gmail.com
Michal Trojnara
2016-05-10 10:24:02 UTC
Permalink
Post by Guillermo Rodriguez Garcia
Current stunnel (5.32) gives a bunch of warnings in str.c when the
str.c:101: warning: integer constant is too large for 'long' type
Shouldn't these constants be declared with the 'LL' suffix instead of 'L' ?
#define CANARY_INITIALIZED 0x0000c0ded0000000LL
#define CANARY_UNINTIALIZED 0x0000abadbabe0000LL
#define MAGIC_ALLOCATED 0x0000a110c8ed0000LL
#define MAGIC_DEALLOCATED 0x0000defec8ed0000LL
Indeed. Thank you.

Best regards,
Mike

Loading...