Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
0141-erl_lint-pat_bit_size-does-not-need-update...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0141-erl_lint-pat_bit_size-does-not-need-updated-Vt-for-e.patch of Package erlang
From 29e4306959fd2e26df9b8ee6cf241f990391e298 Mon Sep 17 00:00:00 2001 From: Richard Carlsson <carlsson.richard@gmail.com> Date: Tue, 6 Oct 2020 12:24:47 +0200 Subject: [PATCH 1/3] erl_lint: pat_bit_size() does not need updated Vt for each bin element --- lib/stdlib/src/erl_lint.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/stdlib/src/erl_lint.erl b/lib/stdlib/src/erl_lint.erl index fe3f1e33a8..b19cbaf88c 100644 --- a/lib/stdlib/src/erl_lint.erl +++ b/lib/stdlib/src/erl_lint.erl @@ -1860,8 +1860,7 @@ pattern_element(Be, Vt, Old, Acc) -> pattern_element_1({bin_element,Line,E,Sz0,Ts}, Vt, Old, {Size0,Esvt,Bvt,St0}) -> {Pevt,Bvt1,St1} = pat_bit_expr(E, Old, Bvt, St0), - %% vtmerge or vtmerge_pat doesn't matter here - {Sz1,Szvt,Bvt2,St2} = pat_bit_size(Sz0, vtmerge(Vt, Esvt), Bvt, St1), + {Sz1,Szvt,Bvt2,St2} = pat_bit_size(Sz0, Vt, Bvt, St1), {Sz2,Bt,St3} = bit_type(Line, Sz1, Ts, St2), {Sz3,St4} = bit_size_check(Line, Sz2, Bt, St3), Sz4 = case {E,Sz3} of -- 2.26.2
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