mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-02 19:40:50 +04:00
uClibc: fix strrchr on i386
SVN-Revision: 18016
This commit is contained in:
1 parent
2ecfe91b61
commit
0e43efeae7
1 file changed
+11
@@ -0,0 +1,11 @@
|
||||
--- a/libc/string/i386/strrchr.c
|
||||
+++ b/libc/string/i386/strrchr.c
|
||||
@@ -45,7 +45,7 @@ char *strrchr(const char *s, int c)
|
||||
"leal -1(%%esi),%0\n"
|
||||
"2:\ttestb %%al,%%al\n\t"
|
||||
"jne 1b"
|
||||
- :"=g" (__res), "=&S" (d0), "=&a" (d1) :"0" (0),"1" (s),"2" (c));
|
||||
+ :"=r" (__res), "=&S" (d0), "=&a" (d1) :"0" (0),"1" (s),"2" (c));
|
||||
return __res;
|
||||
}
|
||||
libc_hidden_def(strrchr)
|
||||
Reference in new issue
Block a user