Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: source/i18n/hebrwcal.cpp

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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/i18n/hebrwcal.h ('k') | source/i18n/i18n.rc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/hebrwcal.cpp
diff --git a/source/i18n/hebrwcal.cpp b/source/i18n/hebrwcal.cpp
index c5dc4079124384cedd4e3e63b6a3a5141efeb218..7bba33fe5666925448d2a0032106313556221573 100644
--- a/source/i18n/hebrwcal.cpp
+++ b/source/i18n/hebrwcal.cpp
@@ -1,6 +1,8 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
******************************************************************************
-* Copyright (C) 2003-2013, International Business Machines Corporation
+* Copyright (C) 2003-2016, International Business Machines Corporation
* and others. All Rights Reserved.
******************************************************************************
*
@@ -17,6 +19,7 @@
#if !UCONFIG_NO_FORMATTING
+#include "cmemory.h"
#include "umutex.h"
#include <float.h>
#include "gregoimp.h" // Math
@@ -580,7 +583,7 @@ void HebrewCalendar::handleComputeFields(int32_t julianDay, UErrorCode &status)
UBool isLeap = isLeapYear(year);
int32_t month = 0;
- int32_t momax = sizeof(MONTH_START) / (3 * sizeof(MONTH_START[0][0]));
+ int32_t momax = UPRV_LENGTHOF(MONTH_START);
while (month < momax && dayOfYear > ( isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month][type] ) ) {
month++;
}
« no previous file with comments | « source/i18n/hebrwcal.h ('k') | source/i18n/i18n.rc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698