Fix compiler warning.

This commit is contained in:
Daniel Kirchner
2023-09-05 11:50:14 +02:00
committed by Nikola Matic
parent f7cbddb7d5
commit 2bc62b0271
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -344,7 +344,7 @@ struct FunctionCallAnnotation: ExpressionAnnotation
};
/// Experimental Solidity annotations.
/// Used to intergrate with name and type resolution.
/// Used to integrate with name and type resolution.
/// @{
struct TypeClassDefinitionAnnotation: TypeDeclarationAnnotation, StructurallyDocumentedAnnotation
{
@@ -375,9 +375,9 @@ std::string TypeEnvironmentHelpers::typeToString(Type const& _type) const
std::stringstream stream;
std::string varName;
size_t index = _type.index();
varName += 'a' + static_cast<char>(index%26);
varName += static_cast<char>('a' + (index%26));
while (index /= 26)
varName += 'a' + static_cast<char>(index%26);
varName += static_cast<char>('a' + (index%26));
reverse(varName.begin(), varName.end());
stream << '\'' << varName;
switch (_type.sort().classes.size())