Skip to content

Commit

Permalink
Merge pull request #22 from AntelopeIO/signness_warnfix
Browse files Browse the repository at this point in the history
fix a few different signedness warnings
  • Loading branch information
spoonincode authored Jan 8, 2024
2 parents 397cfe1 + a4f7027 commit e159d6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unittests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ void TestFieldElementArithmeticCornerCases() {

};

for (int i = 0; i < sizeof(testVectorInput) / sizeof(const char*); ++i) {
for (size_t i = 0; i < sizeof(testVectorInput) / sizeof(const char*); ++i) {
testSqureMul(testVectorInput[i], testVectorExpectedSquare[i], testVectorExpectedAdd[i]);
}
}
Expand Down Expand Up @@ -493,7 +493,7 @@ void TestMod() {
"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001",
};

for (int i = 0; i < sizeof(testVectorInput)/sizeof(const char*); ++ i) {
for (size_t i = 0; i < sizeof(testVectorInput)/sizeof(const char*); ++ i) {
auto s = hexToBytes<64>(testVectorInput[i]);
auto k = scalar::fromBytesBE<8>(s);
fp r = fp::modPrime<8>(k);
Expand Down Expand Up @@ -529,7 +529,7 @@ void TestExp() {
"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001",
};

for (int i = 0; i < sizeof(testVectorInput)/sizeof(const char*); ++ i) {
for (size_t i = 0; i < sizeof(testVectorInput)/sizeof(const char*); ++ i) {
auto s = hexToBytes<64>(testVectorInput[i]);
auto b = fp::fromBytesBE(hexToBytes<48>(testVectorInput2[i]), false, false);
auto k = scalar::fromBytesBE<8>(s);
Expand Down

0 comments on commit e159d6e

Please sign in to comment.