Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:25
erlang
0427-beam_types-Fix-float-0.0-warning.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0427-beam_types-Fix-float-0.0-warning.patch of Package erlang
From e069e365659e02eb31168a1baa2830b51a65a18c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20H=C3=B6gberg?= <john@erlang.org> Date: Fri, 11 Aug 2023 11:21:37 +0200 Subject: [PATCH] beam_types: Fix float-0.0 warning --- lib/compiler/src/beam_types.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compiler/src/beam_types.erl b/lib/compiler/src/beam_types.erl index c3bf7c8fae..3fc2476898 100644 --- a/lib/compiler/src/beam_types.erl +++ b/lib/compiler/src/beam_types.erl @@ -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}}) -> -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor