File 2321-Remove-and-or-in-preloaded.patch of Package erlang
From ad687f65ab08e0f025f94cce11f87f76364cf7d4 Mon Sep 17 00:00:00 2001
From: Maria Scott <maria-12648430@hnc-agency.org>
Date: Wed, 18 Feb 2026 12:27:04 +0100
Subject: [PATCH] Remove and/or in preloaded
---
erts/preloaded/src/prim_zip.erl | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/erts/preloaded/src/prim_zip.erl b/erts/preloaded/src/prim_zip.erl
index 102d98faeb..6f7691c60e 100644
--- a/erts/preloaded/src/prim_zip.erl
+++ b/erts/preloaded/src/prim_zip.erl
@@ -41,8 +41,6 @@
-include_lib("stdlib/include/zip.hrl"). % #zip_file, #zip_comment
-include("zip_internal.hrl"). % #cd_file_header etc
--compile(nowarn_obsolete_bool_op).
-
%% max bytes read from files and archives (and fed to zlib)
-define(READ_BLOCK_SIZE, 16*1024).
@@ -616,7 +614,7 @@ splitter(Left, Right, 0) ->
{Left, Right};
splitter(<<>>, Right, RelPos) ->
split_iolist(Right, RelPos);
-splitter(Left, [A | Right], RelPos) when is_list(A) or is_binary(A) ->
+splitter(Left, [A | Right], RelPos) when is_list(A); is_binary(A) ->
Sz = erlang:iolist_size(A),
case Sz > RelPos of
true ->
@@ -640,7 +638,7 @@ skip_iolist(L, Pos) when is_list(L) ->
skipper(Right, 0) ->
Right;
-skipper([A | Right], RelPos) when is_list(A) or is_binary(A) ->
+skipper([A | Right], RelPos) when is_list(A); is_binary(A) ->
Sz = erlang:iolist_size(A),
case Sz > RelPos of
true ->
--
2.51.0