aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/sys_pre_expand.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-11-10 14:49:12 +0100
committerBjörn Gustavsson <[email protected]>2015-11-10 15:01:53 +0100
commit7929fd383a90e1fbc47b6d0625cd8d889794a755 (patch)
treea2d350b8495a70d0add16ceccf5c689c8153de26 /lib/compiler/src/sys_pre_expand.erl
parent488862ddb45a8949efe5d71b7eb4a4a5e6406a07 (diff)
downloadotp-7929fd383a90e1fbc47b6d0625cd8d889794a755.tar.gz
otp-7929fd383a90e1fbc47b6d0625cd8d889794a755.tar.bz2
otp-7929fd383a90e1fbc47b6d0625cd8d889794a755.zip
sys_pre_expand: Cover coerce_to_float/2
Diffstat (limited to 'lib/compiler/src/sys_pre_expand.erl')
-rw-r--r--lib/compiler/src/sys_pre_expand.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/compiler/src/sys_pre_expand.erl b/lib/compiler/src/sys_pre_expand.erl
index 150a453eec..7ab4e1845c 100644
--- a/lib/compiler/src/sys_pre_expand.erl
+++ b/lib/compiler/src/sys_pre_expand.erl
@@ -552,8 +552,7 @@ coerce_to_float({integer,L,I}=E, [float|_]) ->
try
{float,L,float(I)}
catch
- error:badarg -> E;
- error:badarith -> E
+ error:badarg -> E
end;
coerce_to_float(E, _) -> E.