From 2bc62b0271742cf9f35ba742b3f71968e6c60aa4 Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Tue, 22 Aug 2023 18:11:11 +0200 Subject: [PATCH] Fix compiler warning. --- libsolidity/ast/ASTAnnotations.h | 2 +- libsolidity/experimental/ast/TypeSystemHelper.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libsolidity/ast/ASTAnnotations.h b/libsolidity/ast/ASTAnnotations.h index e2b4ab7a1..182aafa6b 100644 --- a/libsolidity/ast/ASTAnnotations.h +++ b/libsolidity/ast/ASTAnnotations.h @@ -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 { diff --git a/libsolidity/experimental/ast/TypeSystemHelper.cpp b/libsolidity/experimental/ast/TypeSystemHelper.cpp index e819b84ba..d2280b181 100644 --- a/libsolidity/experimental/ast/TypeSystemHelper.cpp +++ b/libsolidity/experimental/ast/TypeSystemHelper.cpp @@ -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(index%26); + varName += static_cast('a' + (index%26)); while (index /= 26) - varName += 'a' + static_cast(index%26); + varName += static_cast('a' + (index%26)); reverse(varName.begin(), varName.end()); stream << '\'' << varName; switch (_type.sort().classes.size())