forked from pool/libHX
- Update to release 4.19
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libHX?expand=0&rev=125
This commit is contained in:
parent
f6ff6b2850
commit
afd74979d8
@ -1,38 +0,0 @@
|
||||
From 763c993419a6d59e6d2e1d7d60bc8d23981b5a94 Mon Sep 17 00:00:00 2001
|
||||
From: Jan Engelhardt <jengelh@inai.de>
|
||||
Date: Tue, 28 Nov 2023 23:22:58 +0100
|
||||
Subject: [PATCH] string: resolve testsuite failure with aarch64
|
||||
|
||||
Fixes: v4.17-9-g323210d
|
||||
---
|
||||
src/string.c | 13 ++++++++++++-
|
||||
1 file changed, 12 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/string.c b/src/string.c
|
||||
index 11f3c9f..8e12b4a 100644
|
||||
--- a/src/string.c
|
||||
+++ b/src/string.c
|
||||
@@ -1030,8 +1030,19 @@ EXPORT_SYMBOL unsigned long long HX_strtoull_unit(const char *s,
|
||||
errno = ERANGE;
|
||||
return ULLONG_MAX;
|
||||
}
|
||||
+ /*
|
||||
+ * https://eel.is/c++draft/conv.double#2: values
|
||||
+ * unrepresentable in the target type (such as forcing -5.2f
|
||||
+ * into a uint) is UB. Thus check for range and apply the
|
||||
+ * negation after the conversion to ULL.
|
||||
+ */
|
||||
+ if (q > ULLONG_MAX) {
|
||||
+ errno = ERANGE;
|
||||
+ return ULLONG_MAX;
|
||||
+ }
|
||||
+ unsigned long long r = q;
|
||||
errno = 0;
|
||||
- return neg ? -q : q;
|
||||
+ return neg ? -r : r;
|
||||
}
|
||||
if (exponent == 0)
|
||||
exponent = 1000;
|
||||
--
|
||||
2.43.0
|
||||
|
@ -1,7 +0,0 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iHUEABYKAB0WIQS8oMXDCcrFaedKkhz3bv5dDCI6jwUCZWR82AAKCRD3bv5dDCI6
|
||||
j1m/APwLy01bA/g2ElzN9bLlQIB1gBiF6cH3FkWoTu50W8wwagEA4ROaAr5ZZZ8X
|
||||
G37Mp+j3svhrTPiQadg0+yJmp5rGYwQ=
|
||||
=iZth
|
||||
-----END PGP SIGNATURE-----
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7b7513010d8d7196f6d2733a8669eb12390bed12ea74449e42af485e1bd7cc75
|
||||
size 356368
|
7
libHX-4.19.tar.asc
Normal file
7
libHX-4.19.tar.asc
Normal file
@ -0,0 +1,7 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iHUEABYKAB0WIQS8oMXDCcrFaedKkhz3bv5dDCI6jwUCZWkWHgAKCRD3bv5dDCI6
|
||||
j1MgAP9m/go0vrdXuyg9nNfm/OD/twP17Odc2iA1ImSg6JK3hwD/W/Jz+birwugP
|
||||
Nj3nJfs3FH/SLt60Yus6Ukg8r9aPPw4=
|
||||
=3Hey
|
||||
-----END PGP SIGNATURE-----
|
3
libHX-4.19.tar.xz
Normal file
3
libHX-4.19.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0384a1bd832a2688528b31af3dfecca36e94c8194a0207d871bf4e1a57e69b0a
|
||||
size 359672
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 30 23:09:57 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Update to release 4.19
|
||||
* string: fixed HX_strtoull_unit with negative fractions
|
||||
producing 0 sometimes
|
||||
* opt: fix HX_getopt losing argv on HXOPT_KEEP_ARGV
|
||||
- Delete 0001-string-resolve-testsuite-failure-with-aarch64.patch
|
||||
(merged)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 27 11:25:47 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
Name: libHX
|
||||
%define lname libHX32
|
||||
Version: 4.18
|
||||
Version: 4.19
|
||||
Release: 0
|
||||
Summary: Collection of routines for C and C++ programming
|
||||
License: LGPL-2.1-or-later
|
||||
@ -28,7 +28,6 @@ URL: https://inai.de/projects/libhx/
|
||||
Source: https://inai.de/files/libhx/libHX-%version.tar.xz
|
||||
Source2: https://inai.de/files/libhx/libHX-%version.tar.asc
|
||||
Source4: %name.keyring
|
||||
Patch1: 0001-string-resolve-testsuite-failure-with-aarch64.patch
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: xz
|
||||
|
Loading…
Reference in New Issue
Block a user