summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-01-17 14:43:59 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-01-17 14:43:59 +0100
commit732d6d8ea317937cf6c2c9a44fb3fa10bff8363e (patch)
treea95e9bbab068ca9b8a199a704fb9898f9fb51a57
parent963a1f3ce6c550e74a260efd8928757b77119ef2 (diff)
downloadlibtasn1-732d6d8ea317937cf6c2c9a44fb3fa10bff8363e.tar.gz
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 <nmav@redhat.com>
-rw-r--r--lib/ASN1.y2
1 files changed, 1 insertions, 1 deletions
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)
{