Commit 9a28d6f1 authored by Julien Wadel's avatar Julien Wadel

Fix Windows build : add explicit conversion

parent 64937cf2
......@@ -80,7 +80,7 @@ void gf_strong_reduce (gf a) {
* common case: it was < p, so now scarry = -1 and this = x - p + 2^255
* so let's add back in p. will carry back off the top for 2^255.
*/
assert(word_is_zero(scarry) | word_is_zero(scarry+1));
assert(word_is_zero((word_t)scarry) | word_is_zero((word_t)scarry+1));
word_t scarry_0 = (word_t)scarry;
dword_t carry = 0;
......@@ -92,7 +92,7 @@ void gf_strong_reduce (gf a) {
carry >>= LIMB_PLACE_VALUE(LIMBPERM(i));
}
assert(word_is_zero(carry + scarry_0));
assert(word_is_zero((word_t)(carry) + scarry_0));
}
/** Subtract two gf elements d=a-b */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment