Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(108)

Unified Diff: source/io/uprntf_p.c

Issue 285520043: ticket:12012: Replace all sizeof p / sizeof *p with UPRV_LENGTHOF(). (Closed) Base URL: svn+ssh://source.icu-project.org/repos/icu/icu/trunk
Patch Set: Code review. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/i18n/winnmfmt.cpp ('k') | source/io/uscanf_p.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/io/uprntf_p.c
diff --git a/source/io/uprntf_p.c b/source/io/uprntf_p.c
index 09ae6bad85793a0e35b4145eb4866b6e76a1b397..04073e71bf9b892c7738781bc75e9e4cf090c074 100644
--- a/source/io/uprntf_p.c
+++ b/source/io/uprntf_p.c
@@ -1,7 +1,7 @@
/*
******************************************************************************
*
-* Copyright (C) 1998-2014, International Business Machines
+* Copyright (C) 1998-2016, International Business Machines
* Corporation and others. All Rights Reserved.
*
******************************************************************************
@@ -143,7 +143,7 @@ u_printf_set_sign(UNumberFormat *format,
symbolLen = unum_getSymbol(format,
UNUM_PLUS_SIGN_SYMBOL,
plusSymbol,
- sizeof(plusSymbol)/sizeof(*plusSymbol),
+ UPRV_LENGTHOF(plusSymbol),
status);
unum_setTextAttribute(format,
UNUM_POSITIVE_PREFIX,
« no previous file with comments | « source/i18n/winnmfmt.cpp ('k') | source/io/uscanf_p.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b