Chromium Code Reviews

Unified Diff: source/io/uscanf_p.c

Issue 2440913002: Update ICU to 58.1
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « source/io/uscanf.c ('k') | source/io/ustdio.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « source/io/uscanf.c ('k') | source/io/ustdio.c » ('j') | no next file with comments »

Powered by Google App Engine