Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  beam_types: Fix float-0.0 warning
  • Loading branch information
jhogberg committed Aug 11, 2023
2 parents 863c2b6 + cccc1fa commit 64d8667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compiler/src/beam_types.erl
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ is_bs_matchable_type(Type) ->
Result :: {ok, term()} | error.
get_singleton_value(#t_atom{elements=[Atom]}) ->
{ok, Atom};
get_singleton_value(#t_float{elements={Float,Float}}) when Float =/= 0.0 ->
get_singleton_value(#t_float{elements={Float,Float}}) when Float /= 0 ->
%% 0.0 is not actually a singleton as it has two encodings: 0.0 and -0.0
{ok, Float};
get_singleton_value(#t_integer{elements={Int,Int}}) ->
Expand Down

0 comments on commit 64d8667

Please sign in to comment.