mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-01 01:16:55 +02:00
use #ifdef POCO_LONG_IS_64_BIT instead of if (sizeof(... to avoid warnings
This commit is contained in:
parent
59a78a55b5
commit
cefab1f993
@ -739,11 +739,11 @@ generate_hash_secret_salt(XML_Parser parser)
|
||||
platform_gather_time_entropy() ^ platform_getpid() ^ (unsigned long)parser;
|
||||
|
||||
/* Factors are 2^31-1 and 2^61-1 (Mersenne primes M31 and M61) */
|
||||
if (sizeof(unsigned long) == 4) {
|
||||
return entropy * 2147483647;
|
||||
} else {
|
||||
return entropy * 2305843009213693951ULL;
|
||||
}
|
||||
#ifdef POCO_LONG_IS_64_BIT
|
||||
return entropy * 2305843009213693951ULL;
|
||||
#else
|
||||
return entropy * 2147483647;
|
||||
#endif
|
||||
}
|
||||
|
||||
static XML_Bool /* only valid for root parser */
|
||||
|
Loading…
x
Reference in New Issue
Block a user