mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix compiler warning.
This commit is contained in:
parent
5d1d365e2f
commit
4fb7e9934e
@ -344,7 +344,7 @@ struct FunctionCallAnnotation: ExpressionAnnotation
|
|||||||
};
|
};
|
||||||
|
|
||||||
/// Experimental Solidity annotations.
|
/// Experimental Solidity annotations.
|
||||||
/// Used to intergrate with name and type resolution.
|
/// Used to integrate with name and type resolution.
|
||||||
/// @{
|
/// @{
|
||||||
struct TypeClassDefinitionAnnotation: TypeDeclarationAnnotation, StructurallyDocumentedAnnotation
|
struct TypeClassDefinitionAnnotation: TypeDeclarationAnnotation, StructurallyDocumentedAnnotation
|
||||||
{
|
{
|
||||||
|
@ -375,9 +375,9 @@ std::string TypeEnvironmentHelpers::typeToString(Type const& _type) const
|
|||||||
std::stringstream stream;
|
std::stringstream stream;
|
||||||
std::string varName;
|
std::string varName;
|
||||||
size_t index = _type.index();
|
size_t index = _type.index();
|
||||||
varName += 'a' + static_cast<char>(index%26);
|
varName += static_cast<char>('a' + (index%26));
|
||||||
while (index /= 26)
|
while (index /= 26)
|
||||||
varName += 'a' + static_cast<char>(index%26);
|
varName += static_cast<char>('a' + (index%26));
|
||||||
reverse(varName.begin(), varName.end());
|
reverse(varName.begin(), varName.end());
|
||||||
stream << '\'' << varName;
|
stream << '\'' << varName;
|
||||||
switch (_type.sort().classes.size())
|
switch (_type.sort().classes.size())
|
||||||
|
Loading…
Reference in New Issue
Block a user