Projects
Mega:23.03
libunwind
_service:tar_scm:0001-fix-byte_order_is_valid-f...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0001-fix-byte_order_is_valid-function-logic.patch of Package libunwind
From dd49933f80043f933bc10e2f0f1c6d3e664475ed Mon Sep 17 00:00:00 2001 From: hubin <hubin73@huawei.com> Date: Fri, 16 Dec 2022 09:24:50 +0800 Subject: [PATCH] fix byte_order_is_valid function logic byte_order_is_valid is an inline function extracted from unw_create_addr_space in libunwind 1.6, currently its logic mismatches the function intention. Signed-off-by: hubin <hubin73@huawei.com> --- include/libunwind_i.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libunwind_i.h b/include/libunwind_i.h index fea5c26..9742267 100644 --- a/include/libunwind_i.h +++ b/include/libunwind_i.h @@ -119,8 +119,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ static inline int byte_order_is_valid(int byte_order) { - return byte_order != UNW_BIG_ENDIAN - && byte_order != UNW_LITTLE_ENDIAN; + return byte_order == UNW_BIG_ENDIAN + || byte_order == UNW_LITTLE_ENDIAN; } static inline int -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2