Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0627-sasl-Replace-calls-to-size-1-with-tuple_si...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0627-sasl-Replace-calls-to-size-1-with-tuple_size-1.patch of Package erlang
From 15348cd9d4c31f69abf192af84b52f2401732652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org> Date: Tue, 17 Jan 2023 06:53:37 +0100 Subject: [PATCH] sasl: Replace calls to size/1 with tuple_size/1 --- lib/sasl/src/systools_rc.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sasl/src/systools_rc.erl b/lib/sasl/src/systools_rc.erl index c570ed00ab..cda52be160 100644 --- a/lib/sasl/src/systools_rc.erl +++ b/lib/sasl/src/systools_rc.erl @@ -426,7 +426,7 @@ translate_dependent_instrs(Mode, Before, After, Appls) -> {Before ++ NBefore, NAfter}. translate_dep_loop(G, WCs, [I| Is], Appls, Before, After, Mode) - when is_tuple(I), size(I) > 1 -> + when tuple_size(I) > 1 -> IName = element(1, I), case lists:member(IName, ?DEP_INSTRS) of true -> @@ -465,7 +465,7 @@ make_dependency_graph(Instructions) -> {VDs, _} = lists:mapfoldl( fun(I, N) -> Mod = element(2, I), - Mods = element(size(I), I), + Mods = element(tuple_size(I), I), {{Mod, Mods, {N, I}}, N+1} end, 1, DepIs), G = digraph:new(), -- 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