Skip to content

Commit

Permalink
Update Mlucas.c
Browse files Browse the repository at this point in the history
Fix an ASSERT statement I mangled in the previous commit (that I mistakenly thought behaved like printf)
  • Loading branch information
xanthe-cat authored Apr 21, 2024
1 parent 75f1de1 commit 27eddf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mlucas.c
Original file line number Diff line number Diff line change
Expand Up @@ -5266,7 +5266,7 @@ int read_ppm1_savefiles(const char*fname, uint64 p, uint32*kblocks, FILE*fp, uin
// Raise PRP base (usually but not always 3) to the just-computed power; result in 4-limb local-array pow[]:
mi64_scalar_modpow_lr(PRP_BASE, exp, KNOWN_FACTORS+i, j, pow);
sprintf(cstr,"\tB: R == %s (mod q)\n",&cbuf[convert_mi64_base10_char(cbuf, pow, j, 0)] ); mlucas_fprint(cstr,1);
ASSERT(HERE, mi64_getlen(pow,4) == k && mi64_cmp_eq(pow,rem,k), "Full-residue == %lu^nsquares (mod q) check fails!", PRP_BASE);
ASSERT(HERE, mi64_getlen(pow,4) == k && mi64_cmp_eq(pow,rem,k), "Full-residue == PRP_base^nsquares (mod q) check fails!");
}
}
#if 0
Expand Down

0 comments on commit 27eddf4

Please sign in to comment.