Comparison

util-src/encodings.c @ 10479:d362934437eb

util.encodings: Remove redundant cast
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 01 Dec 2019 23:34:49 +0100
parent 10478:5e9a1a75f8a7
child 10921:6eb5d2bb11af
comparison
equal deleted inserted replaced
10478:5e9a1a75f8a7 10479:d362934437eb
369 options |= UIDNA_NONTRANSITIONAL_TO_UNICODE; 369 options |= UIDNA_NONTRANSITIONAL_TO_UNICODE;
370 #endif 370 #endif
371 icu_idna2008 = uidna_openUTS46(options, &err); 371 icu_idna2008 = uidna_openUTS46(options, &err);
372 372
373 if(U_FAILURE(err)) { 373 if(U_FAILURE(err)) {
374 fprintf(stderr, "[c] util.encodings: error: %s\n", u_errorName((UErrorCode)err)); 374 fprintf(stderr, "[c] util.encodings: error: %s\n", u_errorName(err));
375 } 375 }
376 } 376 }
377 377
378 #define MAKE_PREP_FUNC(myFunc, prep) \ 378 #define MAKE_PREP_FUNC(myFunc, prep) \
379 static int myFunc(lua_State *L) { return icu_stringprep_prep(L, prep); } 379 static int myFunc(lua_State *L) { return icu_stringprep_prep(L, prep); }