diff options
Diffstat (limited to 'security/cryptopp/files/patch-misc.h')
-rw-r--r-- | security/cryptopp/files/patch-misc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/security/cryptopp/files/patch-misc.h b/security/cryptopp/files/patch-misc.h index 165720d6bef7..7d923019af27 100644 --- a/security/cryptopp/files/patch-misc.h +++ b/security/cryptopp/files/patch-misc.h @@ -2,9 +2,9 @@ This fixes a warning triggered by testing an unsigned parameter against 0. The patch solves this by creating a different template for signed case. (PR: 178827) ---- misc.h.orig 2021-01-01 17:03:59 UTC +--- misc.h.orig 2022-08-07 19:52:03 UTC +++ misc.h -@@ -700,8 +700,10 @@ inline bool SafeConvert(T1 from, T2 &to) +@@ -720,8 +720,10 @@ inline bool SafeConvert(T1 from, T2 &to) /// \param value the value to convert /// \param base the base to use during the conversion /// \return the string representation of value in base. @@ -16,7 +16,7 @@ for signed case. (PR: 178827) { // Hack... set the high bit for uppercase. const unsigned int HIGH_BIT = (1U << 31); -@@ -712,12 +714,6 @@ std::string IntToString(T value, unsigned int base = 1 +@@ -732,12 +734,6 @@ std::string IntToString(T value, unsigned int base = 1 if (value == 0) return "0"; @@ -29,7 +29,7 @@ for signed case. (PR: 178827) std::string result; while (value > 0) { -@@ -725,9 +721,28 @@ std::string IntToString(T value, unsigned int base = 1 +@@ -745,9 +741,28 @@ std::string IntToString(T value, unsigned int base = 1 result = char((digit < 10 ? '0' : (CH - 10)) + digit) + result; value /= base; } |