fix format

This commit is contained in:
Francois Perrad 2018-12-27 08:56:32 +01:00
parent 4fec1ae6f2
commit e519d5ef41

View File

@ -144,7 +144,7 @@ static void gen_prime(void)
} while (x == 0uL); } while (x == 0uL);
if (r > 31uL) { if (r > 31uL) {
fwrite(&r, 1uL, sizeof(mp_digit), out); fwrite(&r, 1uL, sizeof(mp_digit), out);
printf("%9u\r", r); printf("%9lu\r", r);
fflush(stdout); fflush(stdout);
} }
if (r < 31uL) break; if (r < 31uL) break;
@ -336,7 +336,7 @@ top:
mp_toradix(&a, buf, 10); mp_toradix(&a, buf, 10);
printf("A == \n%s\n\n", buf); printf("A == \n%s\n\n", buf);
mp_toradix(&b, buf, 10); mp_toradix(&b, buf, 10);
printf("B == \n%s\n\nG == %d\n", buf, bases[ii]); printf("B == \n%s\n\nG == %lu\n", buf, bases[ii]);
printf("----------------------------------------------------------------\n"); printf("----------------------------------------------------------------\n");
} }