aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_validator.erl
diff options
context:
space:
mode:
authorGuilherme Andrade <[email protected]>2016-10-25 22:59:50 +0100
committerGuilherme Andrade <[email protected]>2016-11-02 18:55:28 +0000
commit3137cabe8ac09841fcaa4786fd7da8fc7caf621b (patch)
tree2246cabdafa1ce6a478eb09a8a99947b3b04842e /lib/compiler/src/beam_validator.erl
parente21a6c9ec713219b0aa2b2a4224f97e713d7337f (diff)
downloadotp-3137cabe8ac09841fcaa4786fd7da8fc7caf621b.tar.gz
otp-3137cabe8ac09841fcaa4786fd7da8fc7caf621b.tar.bz2
otp-3137cabe8ac09841fcaa4786fd7da8fc7caf621b.zip
Support math:fmod/2 BIF on compiler
Diffstat (limited to 'lib/compiler/src/beam_validator.erl')
-rw-r--r--lib/compiler/src/beam_validator.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compiler/src/beam_validator.erl b/lib/compiler/src/beam_validator.erl
index 6e53f53a20..5659077c5d 100644
--- a/lib/compiler/src/beam_validator.erl
+++ b/lib/compiler/src/beam_validator.erl
@@ -1646,6 +1646,7 @@ return_type_math(atan2, 2) -> {float,[]};
return_type_math(pow, 2) -> {float,[]};
return_type_math(ceil, 1) -> {float,[]};
return_type_math(floor, 1) -> {float,[]};
+return_type_math(fmod, 2) -> {float,[]};
return_type_math(pi, 0) -> {float,[]};
return_type_math(F, A) when is_atom(F), is_integer(A), A >= 0 -> term.