From a2ddfe0ef710bb6216b097c42feec75dfe3894d8 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Mon, 13 Nov 2000 23:32:54 +0000 Subject: [PATCH] ICU-714 NONE fix for win32 X-SVN-Rev: 2904 --- icu4c/source/i18n/datefmt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/i18n/datefmt.cpp b/icu4c/source/i18n/datefmt.cpp index c2a854a10a..b81cc78b9b 100644 --- a/icu4c/source/i18n/datefmt.cpp +++ b/icu4c/source/i18n/datefmt.cpp @@ -174,7 +174,7 @@ DateFormat::createDateInstance(DateFormat::EStyle style, // LocaleElements. if(style != kNone) { - style += kDateOffset; + style = (EStyle) (style + kDateOffset); } return create(kNone, (EStyle) (style), aLocale); } @@ -188,7 +188,7 @@ DateFormat::createDateTimeInstance(EStyle dateStyle, { if(dateStyle != kNone) { - dateStyle += kDateOffset; + dateStyle = (EStyle) (dateStyle + kDateOffset); } return create(timeStyle, dateStyle, aLocale); }