Use an explicit int cast

...
This commit is contained in:
Helge Hess 2021-01-05 15:53:35 +01:00
parent 26e2b57502
commit 5c723816c6
No known key found for this signature in database
GPG Key ID: 0A3825768D88C07D
1 changed files with 1 additions and 1 deletions

View File

@ -3425,7 +3425,7 @@ storeAtts(XML_Parser parser, const ENCODING *enc,
*/
unsigned char step = 0;
unsigned long mask = nsAttsSize - 1;
j = uriHash & mask; /* index into hash table */
j = (int)uriHash & mask; /* index into hash table */
while (parser->m_nsAtts[j].version == version) {
/* for speed we compare stored hash values first */
if (uriHash == parser->m_nsAtts[j].hash) {