Skip to content

Commit

Permalink
Explicitly specify Json::Value(Json::LargestUInt()) for assigning uns…
Browse files Browse the repository at this point in the history
…igned longs to Json::Value in ExtraMetadata.cpp

This fixes the MacOS build
  • Loading branch information
abinavpp committed Nov 5, 2023
1 parent 03058c6 commit 11fb2bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libsolidity/codegen/ExtraMetadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ class InlineAsmRecursiveFuncRecorder: public ASTConstVisitor
Json::Value record(Json::objectValue);
record["name"] = recFunc.str();
if (_context.runtimeContext())
record["creationTag"] = func.label;
record["creationTag"] = Json::Value(Json::LargestUInt(func.label));
else
record["runtimeTag"] = func.label;
record["totalParamSize"] = func.ast->parameters.size();
record["totalRetParamSize"] = func.ast->returnVariables.size();
record["runtimeTag"] = Json::Value(Json::LargestUInt(func.label));
record["totalParamSize"] = Json::Value(Json::LargestUInt(func.ast->parameters.size()));
record["totalRetParamSize"] = Json::Value(Json::LargestUInt(func.ast->returnVariables.size()));
m_recFuncs.append(record);
}
}
Expand Down

0 comments on commit 11fb2bc

Please sign in to comment.