* as/hc08/lkaomf51.c (OutputName): made name unsigned char,
[fw/sdcc] / link / z80 / lklibr.c
index bd514511be8361f7de2e599fe8294e13edfb3760..c3761bbd907ce582b746010b0909a21e22bf6906 100644 (file)
@@ -581,8 +581,8 @@ int fndsym( char *name )
 
                     _fullpath(absPath1, FirstFound->libspc, PATH_MAX);
                     _fullpath(absPath2, ThisLibr->libspc, PATH_MAX);
-                    for(j=0; absPath1[j]!=0; j++) absPath1[j]=tolower(absPath1[j]);
-                    for(j=0; absPath2[j]!=0; j++) absPath2[j]=tolower(absPath2[j]);
+                    for(j=0; absPath1[j]!=0; j++) absPath1[j]=tolower((unsigned char)absPath1[j]);
+                    for(j=0; absPath2[j]!=0; j++) absPath2[j]=tolower((unsigned char)absPath2[j]);
 #else
                     realpath(FirstFound->libspc, absPath1);
                     realpath(ThisLibr->libspc, absPath2);