]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/io/uscanf_p.c
ICU-57131.0.1.tar.gz
[apple/icu.git] / icuSources / io / uscanf_p.c
index 8219b55688fc3621cb98b53c9ccf7302d1101fa8..716885d495737fc8cb4d564485598fb867794bc2 100644 (file)
@@ -1,7 +1,7 @@
 /*
 *******************************************************************************
 *
-*   Copyright (C) 1998-2014, International Business Machines
+*   Copyright (C) 1998-2016, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 *******************************************************************************
@@ -350,7 +350,7 @@ u_scanf_skip_leading_positive_sign(UFILE   *input,
         symbolLen = unum_getSymbol(format,
             UNUM_PLUS_SIGN_SYMBOL,
             plusSymbol,
-            sizeof(plusSymbol)/sizeof(*plusSymbol),
+            UPRV_LENGTHOF(plusSymbol),
             &localStatus);
 
         if (U_SUCCESS(localStatus)) {
@@ -1352,7 +1352,7 @@ u_scanf_parse(UFILE     *f,
                 case ufmt_count:
                     /* set the spec's width to the # of items converted */
                     spec.fInfo.fWidth = cpConsumed;
-                    /* fall through to next case */
+                    U_FALLTHROUGH;
                 case ufmt_char:
                 case ufmt_uchar:
                 case ufmt_int: