Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
1141-beam_call_types-Correct-type-for-list_to_b...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1141-beam_call_types-Correct-type-for-list_to_bitstring-1.patch of Package erlang
From 7cdd9c9013eba89e8bf06f5eac87537e4c88ada1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org> Date: Sun, 11 Dec 2022 08:03:32 +0100 Subject: [PATCH 1/4] beam_call_types: Correct type for list_to_bitstring/1 list_to_bitstring/1 accepts a bitstring in the tail of the list. --- lib/compiler/src/beam_call_types.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compiler/src/beam_call_types.erl b/lib/compiler/src/beam_call_types.erl index 73f704695e..1dd4256ccf 100644 --- a/lib/compiler/src/beam_call_types.erl +++ b/lib/compiler/src/beam_call_types.erl @@ -273,7 +273,7 @@ types(erlang, 'list_to_binary', [_]) -> sub_unsafe(#t_bitstring{size_unit=8}, [#t_list{}]); types(erlang, 'list_to_bitstring', [_]) -> %% As list_to_binary but with bitstrings rather than binaries. - sub_unsafe(#t_bitstring{}, [proper_list()]); + sub_unsafe(#t_bitstring{}, [#t_list{}]); %% Misc ops. types(erlang, 'binary_part', [_, _]) -> -- 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