summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i18npool/source/calendar/calendar_jewish.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/i18npool/source/calendar/calendar_jewish.cxx b/i18npool/source/calendar/calendar_jewish.cxx
index 395cf26093b2..c2c7519526e6 100644
--- a/i18npool/source/calendar/calendar_jewish.cxx
+++ b/i18npool/source/calendar/calendar_jewish.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: calendar_jewish.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: rt $ $Date: 2005-09-07 17:04:10 $
+ * last change: $Author: hr $ $Date: 2006-06-20 04:43:26 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -45,7 +45,8 @@ using namespace ::rtl;
#define ERROR RuntimeException()
-static UErrorCode status; // status is shared in all calls to Calendar, it has to be reset for each call.
+// not used
+//static UErrorCode status; // status is shared in all calls to Calendar, it has to be reset for each call.
Calendar_jewish::Calendar_jewish()
{
@@ -270,7 +271,7 @@ void SAL_CALL Calendar_jewish::mapFromGregorian() throw(RuntimeException)
HebrewDate hd(Temp);
fieldValue[CalendarFieldIndex::ERA] = hd.GetYear() <= 0 ? 0 : 1;
- fieldValue[CalendarFieldIndex::MONTH] = hd.GetMonth() - 1;
+ fieldValue[CalendarFieldIndex::MONTH] = sal::static_int_cast<sal_Int16>( hd.GetMonth() - 1 );
fieldValue[CalendarFieldIndex::DAY_OF_MONTH] = (sal_Int16)hd.GetDay();
fieldValue[CalendarFieldIndex::YEAR] = (sal_Int16)(hd.GetYear() <= 0 ? 1 - hd.GetYear() : hd.GetYear());
}
@@ -287,7 +288,7 @@ void SAL_CALL Calendar_jewish::mapToGregorian() throw(RuntimeException)
GregorianDate gd(Temp);
fieldSetValue[CalendarFieldIndex::ERA] = gd.GetYear() <= 0 ? 0 : 1;
- fieldSetValue[CalendarFieldIndex::MONTH] = gd.GetMonth() - 1;
+ fieldSetValue[CalendarFieldIndex::MONTH] = sal::static_int_cast<sal_Int16>( gd.GetMonth() - 1 );
fieldSetValue[CalendarFieldIndex::DAY_OF_MONTH] = (sal_Int16)gd.GetDay();
fieldSetValue[CalendarFieldIndex::YEAR] = (sal_Int16)(gd.GetYear() <= 0 ? 1 - gd.GetYear() : gd.GetYear());
fieldSet |= FIELDS;