From: jesusc Date: Sat, 15 Oct 2005 08:16:11 +0000 (+0000) Subject: Fixed bug 1326457 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=23077a08e5edad75afffaffe3ec16728c76b73a5;hp=6fb246dc350f69b23fe06fb4c0ea792dd25e904f;p=fw%2Fsdcc Fixed bug 1326457 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3905 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- 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 )