Skip to content

Commit 5d2b154

Browse files
authored
Merge pull request #667 from levitte/constify-math
Constify math descriptors
2 parents 2dd6690 + 1d07689 commit 5d2b154

32 files changed

+478
-444
lines changed

demos/tv_gen.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -678,11 +678,11 @@ static void ecc_gen(void)
678678
fprintf(out, "%s\n", ltc_ecc_curves[x].OID);
679679
mp_set(k, 1);
680680

681-
mp_read_radix(order, (char *)ltc_ecc_curves[x].order, 16);
682-
mp_read_radix(modulus, (char *)ltc_ecc_curves[x].prime, 16);
683-
mp_read_radix(a, (char *)ltc_ecc_curves[x].A, 16);
684-
mp_read_radix(G->x, (char *)ltc_ecc_curves[x].Gx, 16);
685-
mp_read_radix(G->y, (char *)ltc_ecc_curves[x].Gy, 16);
681+
mp_read_radix(order, ltc_ecc_curves[x].order, 16);
682+
mp_read_radix(modulus, ltc_ecc_curves[x].prime, 16);
683+
mp_read_radix(a, ltc_ecc_curves[x].A, 16);
684+
mp_read_radix(G->x, ltc_ecc_curves[x].Gx, 16);
685+
mp_read_radix(G->y, ltc_ecc_curves[x].Gy, 16);
686686
mp_set(G->z, 1);
687687

688688
while (mp_cmp(k, order) == LTC_MP_LT) {

0 commit comments

Comments
 (0)