Skip to content

Commit 10779a9

Browse files
committed
fix warning
1 parent 64340d2 commit 10779a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/sm9curvetest.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void test_curve1()
1414
SM9JacobPoint1Mont A = { 0 };
1515
SM9JacobPoint1Mont B = { 0 };
1616
SM9JacobPoint1Mont C = { 0 };
17-
UInt256 e = { 7, 9 };
17+
UInt256 e = { .u8 = {7, 9} };
1818

1919
SM9JacobPoint1Mont_FromPoint(&_G, &G);
2020
assert(SM9JacobPoint1Mont_IsOnCurve(&G));
@@ -125,7 +125,7 @@ void test_curve2()
125125
SM9JacobPoint2Mont A = { 0 };
126126
SM9JacobPoint2Mont B = { 0 };
127127
SM9JacobPoint2Mont C = { 0 };
128-
UInt256 e = { 7, 9, 13 };
128+
UInt256 e = { .u8 = { 7, 9, 13 } };
129129

130130
SM9JacobPoint2Mont_FromPoint(&_G, &G);
131131
assert(SM9JacobPoint2Mont_IsOnCurve(&G));

0 commit comments

Comments
 (0)