| Index: source/io/uscanf_p.c
|
| diff --git a/source/io/uscanf_p.c b/source/io/uscanf_p.c
|
| index 8219b55688fc3621cb98b53c9ccf7302d1101fa8..ded984cef2df4fc27a55ae7761aea733c282009b 100644
|
| --- a/source/io/uscanf_p.c
|
| +++ b/source/io/uscanf_p.c
|
| @@ -1,7 +1,9 @@
|
| +// Copyright (C) 2016 and later: Unicode, Inc. and others.
|
| +// License & terms of use: http://www.unicode.org/copyright.html
|
| /*
|
| *******************************************************************************
|
| *
|
| -* Copyright (C) 1998-2014, International Business Machines
|
| +* Copyright (C) 1998-2016, International Business Machines
|
| * Corporation and others. All Rights Reserved.
|
| *
|
| *******************************************************************************
|
| @@ -350,7 +352,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 +1354,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:
|
|
|