Fix bugs in i18n_unumber_create 98/180698/1 submit/tizen/20180604.080856
authorHyunjee Kim <hj0426.kim@samsung.com>
Fri, 1 Jun 2018 07:41:17 +0000 (16:41 +0900)
committerHyunjee Kim <hj0426.kim@samsung.com>
Fri, 1 Jun 2018 07:42:02 +0000 (16:42 +0900)
Change-Id: Ib90af48867c687d5d191d9e5a6906073ff10cc51
Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
src/utils_i18n_unumber.c

index ecd1872..578f6ca 100644 (file)
@@ -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 =