From 3889f565416f6ee1b076932592e9912c435d85ca Mon Sep 17 00:00:00 2001 From: Hyunjee Kim Date: Fri, 1 Jun 2018 16:41:17 +0900 Subject: [PATCH] Fix bugs in i18n_unumber_create Change-Id: Ib90af48867c687d5d191d9e5a6906073ff10cc51 Signed-off-by: Hyunjee Kim --- src/utils_i18n_unumber.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = -- 2.7.4