Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
6526-Unify-approach-for-function-heads.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 6526-Unify-approach-for-function-heads.patch of Package erlang
From 5786568adeabc7c78b4e86479bf2f3efe92242b5 Mon Sep 17 00:00:00 2001 From: Nelson Vides <videsnelson@gmail.com> Date: Wed, 7 Apr 2021 16:32:39 +0200 Subject: [PATCH 6/7] Unify approach for function heads --- lib/stdlib/src/binary.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stdlib/src/binary.erl b/lib/stdlib/src/binary.erl index e01f46a54d..7bfca5084c 100644 --- a/lib/stdlib/src/binary.erl +++ b/lib/stdlib/src/binary.erl @@ -369,7 +369,7 @@ get_opts_replace(_,_) -> -spec encode_hex(Bin) -> Bin2 when Bin :: binary(), Bin2 :: <<_:_*16>>. -encode_hex(Data) when byte_size(Data) band 7 =:= 0 -> +encode_hex(Data) when byte_size(Data) rem 8 =:= 0 -> << <<?HEX(A),?HEX(B),?HEX(C),?HEX(D),?HEX(E),?HEX(F),?HEX(G),?HEX(H)>> || <<A,B,C,D,E,F,G,H>> <= Data >>; encode_hex(Data) when byte_size(Data) rem 7 =:= 0 -> << <<?HEX(A),?HEX(B),?HEX(C),?HEX(D),?HEX(E),?HEX(F),?HEX(G)>> || <<A,B,C,D,E,F,G>> <= Data >>; -- 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