mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fixup! Fixed point type conversions.
This commit is contained in:
parent
14293ea02a
commit
1c9baafe26
@ -494,7 +494,8 @@ string YulUtilFunctions::typedShiftRightFunction(Type const& _type, Type const&
|
||||
|
||||
string YulUtilFunctions::fixedPointShiftFunction(int _digits, bool _signed)
|
||||
{
|
||||
string const functionName = "fixed_point_shift_" + to_string(_digits) + (_signed ? "_signed" : "_unsigned");
|
||||
string digitsStr = _digits < 0 ? ("n_" + to_string(-_digits)) : to_string(_digits);
|
||||
string const functionName = "fixed_point_shift_" + digitsStr + (_signed ? "_signed" : "_unsigned");
|
||||
return m_functionCollector.createFunction(functionName, [&](vector<string>& _args, vector<string>& _ret) {
|
||||
_args = {"value"};
|
||||
_ret = {"result"};
|
||||
|
Loading…
Reference in New Issue
Block a user