Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
erlang
1386-Fix-r2f-variable-names-to-be-correct.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1386-Fix-r2f-variable-names-to-be-correct.patch of Package erlang
From 765a74154219a89f3f5eb0e7dd10fdfa313f61df Mon Sep 17 00:00:00 2001 From: zeek0x <0h23k1.n40k1@gmail.com> Date: Mon, 21 Feb 2022 17:45:41 +0900 Subject: [PATCH 2/2] Fix r2f variable names to be correct --- lib/stdlib/src/queue.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/stdlib/src/queue.erl b/lib/stdlib/src/queue.erl index 1ff59af782..8d9eb9f053 100644 --- a/lib/stdlib/src/queue.erl +++ b/lib/stdlib/src/queue.erl @@ -703,11 +703,11 @@ r2f([]) -> {[],[]}; r2f([_]=R) -> {[],R}; -r2f([X,Y]) -> - {[X],[Y]}; +r2f([Y,X]) -> + {[Y],[X]}; r2f(List) -> - {FF,RR} = lists:split(length(List) div 2, List), - {FF,lists:reverse(RR, [])}. + {RR,FF} = lists:split(length(List) div 2, List), + {RR,lists:reverse(FF, [])}. %% Move half of elements from F to R, if there are enough f2r([]) -> -- 2.34.1
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