]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/ucnv_lmb.cpp
ICU-66108.tar.gz
[apple/icu.git] / icuSources / common / ucnv_lmb.cpp
index 1ec56f7a45fbc41c5590f32b0daef0dd83c026cb..168392837b54596f66151d20137dbf58ddd8e2c3 100644 (file)
@@ -1107,11 +1107,13 @@ GetUniFromLMBCSUni(char const ** ppLMBCSin)  /* Called with LMBCS-style Unicode
    all input as required by ICU converter semantics.
 */
 
-#define CHECK_SOURCE_LIMIT(index) \
-     if (args->source+index > args->sourceLimit){\
-         *err = U_TRUNCATED_CHAR_FOUND;\
-         args->source = args->sourceLimit;\
-         return 0xffff;}
+#define CHECK_SOURCE_LIMIT(index) UPRV_BLOCK_MACRO_BEGIN { \
+    if (args->source+index > args->sourceLimit) { \
+        *err = U_TRUNCATED_CHAR_FOUND; \
+        args->source = args->sourceLimit; \
+        return 0xffff; \
+    } \
+} UPRV_BLOCK_MACRO_END
 
 /* Return the Unicode representation for the current LMBCS character */