diff options
author | Ulrich Drepper <drepper@redhat.com> | 2010-01-22 10:22:53 -0800 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2010-01-22 10:22:53 -0800 |
commit | 5ddf954cf19d43f54ba44f487427d210952e1236 (patch) | |
tree | a63514c3c5df0dacad8088f712153de51b70d89d /posix/regex_internal.c | |
parent | 4f08104cbf07d87a42c389f2af17f87c445e59d5 (diff) | |
download | glibc-5ddf954cf19d43f54ba44f487427d210952e1236.tar glibc-5ddf954cf19d43f54ba44f487427d210952e1236.tar.gz glibc-5ddf954cf19d43f54ba44f487427d210952e1236.tar.bz2 glibc-5ddf954cf19d43f54ba44f487427d210952e1236.zip |
Simplify test in re_string_skip_chars.
Diffstat (limited to 'posix/regex_internal.c')
-rw-r--r-- | posix/regex_internal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/regex_internal.c b/posix/regex_internal.c index 976dbfc465..8183a29bf6 100644 --- a/posix/regex_internal.c +++ b/posix/regex_internal.c @@ -500,7 +500,7 @@ re_string_skip_chars (re_string_t *pstr, int new_raw_idx, wint_t *last_wc) prev_st = pstr->cur_state; mbclen = __mbrtowc (&wc2, (const char *) pstr->raw_mbs + rawbuf_idx, remain_len, &pstr->cur_state); - if (BE (mbclen == (size_t) -2 || mbclen == (size_t) -1 || mbclen == 0, 0)) + if (BE ((ssize_t) mbclen <= 0, 0)) { /* We treat these cases as a single byte character. */ if (mbclen == 0 || remain_len == 0) |