Merge commit '441aa3044f43e5572f58c354f01e6bc070acd5c7'
[gnulib.git] / lib / unistr / u16-mbtouc.c
index 2691db8..4ea0c8f 100644 (file)
@@ -40,18 +40,18 @@ u16_mbtouc (ucs4_t *puc, const uint16_t *s, size_t n)
   if (c < 0xdc00)
     {
       if (n >= 2)
-       {
-         if (s[1] >= 0xdc00 && s[1] < 0xe000)
-           {
-             *puc = 0x10000 + ((c - 0xd800) << 10) + (s[1] - 0xdc00);
-             return 2;
-           }
-         /* invalid multibyte character */
-       }
+        {
+          if (s[1] >= 0xdc00 && s[1] < 0xe000)
+            {
+              *puc = 0x10000 + ((c - 0xd800) << 10) + (s[1] - 0xdc00);
+              return 2;
+            }
+          /* invalid multibyte character */
+        }
       else
-       {
-         /* incomplete multibyte character */
-       }
+        {
+          /* incomplete multibyte character */
+        }
     }
   /* invalid multibyte character */
   *puc = 0xfffd;