From 23077a08e5edad75afffaffe3ec16728c76b73a5 Mon Sep 17 00:00:00 2001 From: jesusc Date: Sat, 15 Oct 2005 08:16:11 +0000 Subject: [PATCH] Fixed bug 1326457 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3905 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 4 ++++ device/lib/_strcmp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ae5ef8f6..fd576419 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-10-15 Jesus Calvino-Fraga + + * device/lib/_strcmp.c: Fixed bug 1326457 + 2005-10-11 Raphael Neider * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds diff --git a/device/lib/_strcmp.c b/device/lib/_strcmp.c index 56de905f..eb834161 100644 --- a/device/lib/_strcmp.c +++ b/device/lib/_strcmp.c @@ -45,7 +45,7 @@ int strcmp ( #else register int ret = 0 ; - while( ! (ret = *asrc - *adst) && *adst) + while( ! (ret = *(unsigned char *)asrc - *(unsigned char *)adst) && *adst) ++asrc, ++adst; if ( ret < 0 ) -- 2.30.2