[libxslt] Fix implicit-int-conversion warning in exslt/crypto.c



commit f235404b13f17d5343b854fe5d459a0c98bbd2d2
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Fri Jan 10 13:11:45 2020 +0100

    Fix implicit-int-conversion warning in exslt/crypto.c

 libexslt/crypto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libexslt/crypto.c b/libexslt/crypto.c
index 621fd904..c6bf34f4 100644
--- a/libexslt/crypto.c
+++ b/libexslt/crypto.c
@@ -101,7 +101,7 @@ exsltCryptoHex2Bin (const unsigned char *hex, int hexlen,
        else if (tmp >= 'a' && tmp <= 'f')
            lo = 10 + (tmp - 'a');
 
-       result = hi << 4;
+       result = (unsigned char) (hi << 4);
        result += lo;
        bin[j++] = result;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]