Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed compilation error of demo/demo.c because of missing macro LTM_P…

…RIME_2MSB_OFF
  • Loading branch information...
commit fe406736399ea5b223baddc7f2081c26f1043b42 1 parent 6d20c3c
@sjaeckel sjaeckel authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 demo/demo.c
View
9 demo/demo.c
@@ -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;
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.