From 09d47ead18c7ffd68159f8481b10d33c8fc37f3b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 21 Nov 2014 10:43:14 +0100 Subject: [PATCH] Fix compiler warning in src/iri.c --- src/ChangeLog | 4 ++++ src/iri.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 98c47b5e..120e82e1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2014-11-21 Daniel Stenberg + + * iri.c (remote_to_utf8): Fix compiler warning + 2014-11-20 Tim Ruehsen * progress.c: Fix code for undefined USE_NLS_PROGRESS_BAR diff --git a/src/iri.c b/src/iri.c index d924699e..75ba3e0d 100644 --- a/src/iri.c +++ b/src/iri.c @@ -279,9 +279,9 @@ remote_to_utf8 (struct iri *iri, const char *str, const char **new) function. */ if (!c_strcasecmp (iri->uri_encoding, "UTF-8")) { - const char *p = str; - for (p = str; *p; p++) - if (*p < 0 || *p > 127) + const unsigned char *p; + for (p = (unsigned char *) str; *p; p++) + if (*p > 127) { *new = strdup (str); return true;