aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/Types.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsolidity/ast/Types.h')
-rw-r--r--libsolidity/ast/Types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/ast/Types.h b/libsolidity/ast/Types.h
index 345f84a1..b41b2235 100644
--- a/libsolidity/ast/Types.h
+++ b/libsolidity/ast/Types.h
@@ -396,6 +396,9 @@ public:
/// smallest value in general.
bigint minIntegerValue() const;
+ /// @returns the smallest integer type that can hold this type with fractional parts shifted to integers.
+ std::shared_ptr<IntegerType> asIntegerType() const;
+
private:
int m_totalBits;
int m_fractionalDigits;