From: Hyunjee Kim Date: Fri, 1 Jun 2018 07:41:17 +0000 (+0900) Subject: Fix bugs in i18n_unumber_create X-Git-Tag: submit/tizen/20180604.080856^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3889f565416f6ee1b076932592e9912c435d85ca;p=platform%2Fcore%2Fapi%2Fbase-utils.git Fix bugs in i18n_unumber_create Change-Id: Ib90af48867c687d5d191d9e5a6906073ff10cc51 Signed-off-by: Hyunjee Kim --- diff --git a/src/utils_i18n_unumber.c b/src/utils_i18n_unumber.c index ecd1872..578f6ca 100644 --- a/src/utils_i18n_unumber.c +++ b/src/utils_i18n_unumber.c @@ -24,7 +24,7 @@ int i18n_unumber_create(i18n_unumber_format_style_e style, const i18n_uchar *pat i18n_unumber_format_h *num_format) { retv_if(num_format == NULL, I18N_ERROR_INVALID_PARAMETER); - retv_if(style > I18N_UNUMBER_CURRENCY_PLURAL, I18N_ERROR_INVALID_PARAMETER); + retv_if(style > I18N_UNUMBER_FORMAT_STYLE_COUNT, I18N_ERROR_INVALID_PARAMETER); UErrorCode icu_error = U_ZERO_ERROR; *num_format =