diff options
author | Patrik Nyblom <[email protected]> | 2010-06-02 15:22:19 +0200 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2010-06-02 16:47:29 +0200 |
commit | 1b8f86d8314389bf6033d23d3e6d707514ba7612 (patch) | |
tree | ad57aabe4d838b11355de712c29d7599a0a05193 /lib/syntax_tools/src/erl_syntax_lib.erl | |
parent | 656e4790551b2211ff51c3ca24adbd07b135327e (diff) | |
download | otp-1b8f86d8314389bf6033d23d3e6d707514ba7612.tar.gz otp-1b8f86d8314389bf6033d23d3e6d707514ba7612.tar.bz2 otp-1b8f86d8314389bf6033d23d3e6d707514ba7612.zip |
Remove (harmless) warnings about min/max in core applications
Diffstat (limited to 'lib/syntax_tools/src/erl_syntax_lib.erl')
-rw-r--r-- | lib/syntax_tools/src/erl_syntax_lib.erl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/syntax_tools/src/erl_syntax_lib.erl b/lib/syntax_tools/src/erl_syntax_lib.erl index 5c4e074488..1c0367c3d9 100644 --- a/lib/syntax_tools/src/erl_syntax_lib.erl +++ b/lib/syntax_tools/src/erl_syntax_lib.erl @@ -400,10 +400,7 @@ new_variable_name(N, R, _T, F, S) -> %% implementation of `sets'. start_range(S) -> - max(sets:size(S) * ?START_RANGE_FACTOR, ?MINIMUM_RANGE). - -max(X, Y) when X > Y -> X; -max(_, Y) -> Y. + erlang:max(sets:size(S) * ?START_RANGE_FACTOR, ?MINIMUM_RANGE). %% The previous number might or might not be used to compute the %% next number to be tried. It is currently not used. |