diff options
author | Jason Cobb <jason.e.cobb@gmail.com> | 2018-02-16 23:11:07 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-03-31 07:56:36 +0800 |
commit | e37b619593cc926873279dc1d5f532a7a13b6fa4 (patch) | |
tree | dddcf809cbeb342003891b20690e597d8b1c3f7a /libsolidity | |
parent | be261ed519e472af071f0b70acfbc277a5861a20 (diff) | |
download | dexon-solidity-e37b619593cc926873279dc1d5f532a7a13b6fa4.tar dexon-solidity-e37b619593cc926873279dc1d5f532a7a13b6fa4.tar.gz dexon-solidity-e37b619593cc926873279dc1d5f532a7a13b6fa4.tar.bz2 dexon-solidity-e37b619593cc926873279dc1d5f532a7a13b6fa4.tar.lz dexon-solidity-e37b619593cc926873279dc1d5f532a7a13b6fa4.tar.xz dexon-solidity-e37b619593cc926873279dc1d5f532a7a13b6fa4.tar.zst dexon-solidity-e37b619593cc926873279dc1d5f532a7a13b6fa4.zip |
Set default fixed point decimal places to 18
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/ast/Types.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<IntegerType>(256, IntegerType::Modifier::Unsigned); case Token::Fixed: - return make_shared<FixedPointType>(128, 19, FixedPointType::Modifier::Signed); + return make_shared<FixedPointType>(128, 18, FixedPointType::Modifier::Signed); case Token::UFixed: - return make_shared<FixedPointType>(128, 19, FixedPointType::Modifier::Unsigned); + return make_shared<FixedPointType>(128, 18, FixedPointType::Modifier::Unsigned); case Token::Byte: return make_shared<FixedBytesType>(1); case Token::Address: |