don't use __predict_false() here either
This commit is contained in:
parent
e97ddf1eef
commit
dc9f457f24
4
edit.c
4
edit.c
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.57 2006/11/06 19:57:19 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.58 2006/11/09 00:01:36 tg Exp $");
|
||||||
|
|
||||||
/* tty driver characters we are interested in */
|
/* tty driver characters we are interested in */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@ -1092,7 +1092,7 @@ wcxtomb(char *src, unsigned wc)
|
|||||||
*s++ = (wc >> 12) | 0xE0;
|
*s++ = (wc >> 12) | 0xE0;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (__predict_false(count)) {
|
while (count) {
|
||||||
*s++ = ((wc >> (6 * --count)) & 0x3F) | 0x80;
|
*s++ = ((wc >> (6 * --count)) & 0x3F) | 0x80;
|
||||||
}
|
}
|
||||||
return ((char *)s - src);
|
return ((char *)s - src);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user