[stunnel-users] 'Integer constant too large' warnings in str.c

Guillermo Rodriguez Garcia guille.rodriguez at gmail.com
Mon May 9 11:16:09 CEST 2016


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
guille.rodriguez at gmail.com


More information about the stunnel-users mailing list