Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
1166-xmerl-replace-calls-to-size-1-by-tuple_siz...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1166-xmerl-replace-calls-to-size-1-by-tuple_size-1.patch of Package erlang
From 9890694d79ef9633d8f8d042f67770aa0e1ab057 Mon Sep 17 00:00:00 2001 From: Kiko Fernandez-Reyes <kiko@erlang.org> Date: Mon, 16 Jan 2023 10:38:34 +0100 Subject: [PATCH] xmerl: replace calls to size/1 by tuple_size/1 --- lib/xmerl/doc/examples/test_html.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/xmerl/doc/examples/test_html.erl b/lib/xmerl/doc/examples/test_html.erl index cb8088833c..4fe3fe42b4 100644 --- a/lib/xmerl/doc/examples/test_html.erl +++ b/lib/xmerl/doc/examples/test_html.erl @@ -134,14 +134,14 @@ col(Data, Attrs, [{row,_}, {table,_} | _], E) -> ["<td>", nbsp_if_empty(Data), "</td>\n"]. -tuple_list(List, Attrs, Parents, E) -> +tuple_list(List, Attrs, _Parents, _E) -> Elems = case find_attribute(elements, Attrs) of {value, Es} -> Es; false -> case List of [H|_] -> - lists:seq(1,size(H)); + lists:seq(1,tuple_size(H)); [] -> [] end -- 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