mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-20 22:31:23 +01:00
Fixed "integer constant is too large for 'long' type" issue; make constant unsigned instead of typecasting
This commit is contained in:
parent
a5d801cc6e
commit
e350781084
@ -742,7 +742,7 @@ generate_hash_secret_salt(XML_Parser parser)
|
||||
if (sizeof(unsigned long) == 4) {
|
||||
return entropy * 2147483647;
|
||||
} else {
|
||||
return entropy * (unsigned long)2305843009213693951;
|
||||
return entropy * 2305843009213693951ULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user