Skip to content

Commit

Permalink
change int to size_t; #2004
Browse files Browse the repository at this point in the history
  • Loading branch information
PropzSaladaz committed Jan 23, 2025
1 parent c6825d9 commit 3904978
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unittests/libweb3jsonrpc/jsonrpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2795,13 +2795,13 @@ BOOST_AUTO_TEST_CASE( debugGetPatchTimestamps ) {
Json::Reader().parse(c_genesisConfigString, configJson);

// indexed by enum int value
std::vector< int > patchTimestamps;
std::vector< size_t > patchTimestamps;

// Set custom config file & create timestamps for each patch
size_t numPatches = static_cast< size_t >( SchainPatchEnum::PatchesCount );
for (size_t patch = 0; patch < numPatches ; patch++ ) {
SchainPatchEnum patchEnum = static_cast< SchainPatchEnum >( patch );
int ts = patch + 1000; // just to offset from the default values (0, 1)
size_t ts = patch + 1000; // just to offset from the default values (0, 1)
patchTimestamps.push_back(ts);

std::string patchName = getPatchNameForEnum(patchEnum) + "Timestamp";
Expand Down

0 comments on commit 3904978

Please sign in to comment.