Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Legrandin committed Sep 10, 2024
1 parent 6acee5e commit 12912fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mont.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ int mont_new_from_bytes(uint64_t **out, const uint8_t *number, size_t len, const
mont_mult_generic(encoded, tmp1, ctx->r2_mod_n, ctx->modulus, ctx->m0, scratchpad, ctx->words);
} else {
while (ge(tmp1, ctx->modulus, ctx->words)) {
res = sub(tmp1, tmp1, ctx->modulus, ctx->words);
res = (int)sub(tmp1, tmp1, ctx->modulus, ctx->words);
if (res) goto cleanup;
}
res = mont_copy(encoded, tmp1, ctx);
Expand Down

0 comments on commit 12912fa

Please sign in to comment.