NO-JIRA: Make pn_strcasecmp() etc. work correctly with 8 bit chars.
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/30efcdbe Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/30efcdbe Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/30efcdbe Branch: refs/heads/cjansen-cpp-client Commit: 30efcdbea5015e03d77b388d8c0a6979a2392325 Parents: fa52f4e Author: Andrew Stitcher <[email protected]> Authored: Fri May 8 16:53:16 2015 -0400 Committer: Andrew Stitcher <[email protected]> Committed: Fri May 8 16:53:16 2015 -0400 ---------------------------------------------------------------------- proton-c/src/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/30efcdbe/proton-c/src/util.c ---------------------------------------------------------------------- diff --git a/proton-c/src/util.c b/proton-c/src/util.c index 2b560a6..e2c6727 100644 --- a/proton-c/src/util.c +++ b/proton-c/src/util.c @@ -214,7 +214,7 @@ void pni_fatal(const char *fmt, ...) int pn_strcasecmp(const char *a, const char *b) { - char diff; + int diff; while (*b) { diff = tolower(*a++)-tolower(*b++); if ( diff!=0 ) return diff; @@ -224,7 +224,7 @@ int pn_strcasecmp(const char *a, const char *b) int pn_strncasecmp(const char* a, const char* b, size_t len) { - char diff = 0; + int diff = 0; while (*b && len > 0) { diff = tolower(*a++)-tolower(*b++); if ( diff!=0 ) return diff; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
