From 732d6d8ea317937cf6c2c9a44fb3fa10bff8363e Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 17 Jan 2017 14:43:59 +0100 Subject: Cast input to isdigit() to integer That prevents complaints from isdigit() implementations using the input as an array index without casting. Signed-off-by: Nikos Mavrogiannopoulos --- lib/ASN1.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ASN1.y b/lib/ASN1.y index 174ffde..534a9f1 100644 --- a/lib/ASN1.y +++ b/lib/ASN1.y @@ -575,7 +575,7 @@ _asn1_yylex () /* Is STRING a number? */ for (k = 0; k < counter; k++) - if (!isdigit (string[k])) + if (!isdigit ((int)string[k])) break; if (k >= counter) { -- cgit v1.2.1