SPHINCS: make integer promotion explicit

This commit is contained in:
Joost Rijneveld 2019-04-16 10:35:08 +02:00
parent 2a9d793152
commit db7843c5eb
No known key found for this signature in database
GPG Key ID: A4FE39CF49CBC553

View File

@ -68,7 +68,7 @@ static void base_w(unsigned int *output, const size_t out_len,
bits += 8;
}
bits -= SPX_WOTS_LOGW;
output[out] = (total >> bits) & (SPX_WOTS_W - 1);
output[out] = (unsigned int)((total >> bits) & (SPX_WOTS_W - 1));
out++;
}
}