Skip to content

Commit

Permalink
fixed compilation error of demo/demo.c because of missing macro LTM_P…
Browse files Browse the repository at this point in the history
…RIME_2MSB_OFF
  • Loading branch information
sjaeckel committed Mar 23, 2011
1 parent 6d20c3c commit fe40673
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions demo/demo.c
Expand Up @@ -179,8 +179,8 @@ printf("compare no compare!\n"); exit(EXIT_FAILURE); }
fflush(stdout);
err =
mp_prime_random_ex(&a, 8, ix,
(rand() & 1) ? LTM_PRIME_2MSB_OFF :
LTM_PRIME_2MSB_ON, myrng, NULL);
(rand() & 1) ? 0 : LTM_PRIME_2MSB_ON,
myrng, NULL);
if (err != MP_OKAY) {
printf("failed with err code %d\n", err);
return EXIT_FAILURE;
Expand All @@ -196,9 +196,8 @@ printf("compare no compare!\n"); exit(EXIT_FAILURE); }
fflush(stdout);
err =
mp_prime_random_ex(&a, 8, ix,
((rand() & 1) ? LTM_PRIME_2MSB_OFF :
LTM_PRIME_2MSB_ON) | LTM_PRIME_SAFE, myrng,
NULL);
((rand() & 1) ? 0 : LTM_PRIME_2MSB_ON) | LTM_PRIME_SAFE,
myrng, NULL);
if (err != MP_OKAY) {
printf("failed with err code %d\n", err);
return EXIT_FAILURE;
Expand Down

0 comments on commit fe40673

Please sign in to comment.