From e37b619593cc926873279dc1d5f532a7a13b6fa4 Mon Sep 17 00:00:00 2001 From: Jason Cobb Date: Fri, 16 Feb 2018 10:11:07 -0500 Subject: Set default fixed point decimal places to 18 --- libsolidity/ast/Types.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libsolidity') diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index 4c462d09..42fd1c3d 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -208,9 +208,9 @@ TypePointer Type::fromElementaryTypeName(ElementaryTypeNameToken const& _type) case Token::UInt: return make_shared(256, IntegerType::Modifier::Unsigned); case Token::Fixed: - return make_shared(128, 19, FixedPointType::Modifier::Signed); + return make_shared(128, 18, FixedPointType::Modifier::Signed); case Token::UFixed: - return make_shared(128, 19, FixedPointType::Modifier::Unsigned); + return make_shared(128, 18, FixedPointType::Modifier::Unsigned); case Token::Byte: return make_shared(1); case Token::Address: -- cgit