diff options
-rw-r--r-- | sysdeps/s390/s390-64/utf16-utf32-z9.c | 4 | ||||
-rw-r--r-- | sysdeps/s390/s390-64/utf8-utf16-z9.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sysdeps/s390/s390-64/utf16-utf32-z9.c b/sysdeps/s390/s390-64/utf16-utf32-z9.c index c9bccc9..868dea6 100644 --- a/sysdeps/s390/s390-64/utf16-utf32-z9.c +++ b/sysdeps/s390/s390-64/utf16-utf32-z9.c @@ -103,7 +103,7 @@ gconv_init (struct __gconv_step *step) if (__strcasecmp (step->__from_name, "UTF-16BE//") == 0 && (__strcasecmp (step->__to_name, "UTF-32//") == 0 || __strcasecmp (step->__to_name, "UTF-32BE//") == 0 - || __strcasecmp (step->__to_name, "INTERNAL") == 0)) + || __strcasecmp (step->__to_name, "INTERNAL") == 0)) { dir = from_utf16; } @@ -179,7 +179,7 @@ gconv_end (struct __gconv_step *data) \ inptr = pInput; \ outptr = pOutput; \ - cc >>= 28; \ + cc >>= 28; \ \ if (cc == 1) \ { \ diff --git a/sysdeps/s390/s390-64/utf8-utf16-z9.c b/sysdeps/s390/s390-64/utf8-utf16-z9.c index 3fe3652..531d3eb 100644 --- a/sysdeps/s390/s390-64/utf8-utf16-z9.c +++ b/sysdeps/s390/s390-64/utf8-utf16-z9.c @@ -187,14 +187,14 @@ gconv_end (struct __gconv_step *data) if (GLRO (dl_hwcap) & HWCAP_S390_ETF3EH) \ { \ HARDWARE_CONVERT ("cu12 %0, %1, 1"); \ - \ + \ if (inptr != inend) \ { \ int i; \ for (i = 1; inptr + i < inend; ++i) \ if ((inptr[i] & 0xc0) != 0x80) \ break; \ - \ + \ if (__builtin_expect (inptr + i == inend, 1)) \ { \ result = __GCONV_INCOMPLETE_INPUT; \ @@ -275,7 +275,7 @@ gconv_end (struct __gconv_step *data) /* For 4 byte UTF-8 chars two UTF-16 chars (high and \ low) are needed. */ \ uint16_t zabcd, high, low; \ - \ + \ if (__builtin_expect (outptr + 4 > outend, 0)) \ { \ /* Overflow in the output buffer. */ \ @@ -300,7 +300,7 @@ gconv_end (struct __gconv_step *data) low |= ((uint16_t)inptr[2] & 0xc) << 6; /* kl bits */ \ low |= (inptr[2] & 0x3) << 6; /* mn bits */ \ low |= inptr[3] & 0x3f; /* opqrst bits */ \ - \ + \ put16 (outptr, high); \ outptr += 2; \ put16 (outptr, low); \ @@ -382,7 +382,7 @@ gconv_end (struct __gconv_step *data) \ outptr[0] = 0xc0; \ outptr[0] |= c >> 6; \ - \ + \ outptr[1] = 0x80; \ outptr[1] |= c & 0x3f; \ \ |