Fix compiler warning.

This commit is contained in:
Daniel Kirchner 2023-08-22 18:11:11 +02:00 committed by Nikola Matic
parent 5d1d365e2f
commit 4fb7e9934e
2 changed files with 3 additions and 3 deletions

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
{

View File

@ -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())