From 6d5769f20bde24a51553a65b81263fccab7917a7 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Wed, 2 Jul 2014 19:21:02 +0300 Subject: [PATCH] Unicode typing minor fix --- src/duk_unicode.h | 2 +- src/duk_unicode_support.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/duk_unicode.h b/src/duk_unicode.h index 44478081..a429839b 100644 --- a/src/duk_unicode.h +++ b/src/duk_unicode.h @@ -215,7 +215,7 @@ duk_small_int_t duk_unicode_is_line_terminator(duk_codepoint_t cp); duk_small_int_t duk_unicode_is_identifier_start(duk_codepoint_t cp); duk_small_int_t duk_unicode_is_identifier_part(duk_codepoint_t cp); duk_small_int_t duk_unicode_is_letter(duk_codepoint_t cp); -void duk_unicode_case_convert_string(duk_hthread *thr, duk_small_int_t uppercase); +void duk_unicode_case_convert_string(duk_hthread *thr, duk_bool_t uppercase); duk_codepoint_t duk_unicode_re_canonicalize_char(duk_hthread *thr, duk_codepoint_t cp); duk_small_int_t duk_unicode_re_is_wordchar(duk_codepoint_t cp); diff --git a/src/duk_unicode_support.c b/src/duk_unicode_support.c index c3b4f4fc..57bbc3a3 100644 --- a/src/duk_unicode_support.c +++ b/src/duk_unicode_support.c @@ -767,7 +767,7 @@ static duk_codepoint_t duk__case_transform_helper(duk_hthread *thr, duk_codepoint_t cp, duk_codepoint_t prev, duk_codepoint_t next, - duk_small_int_t uppercase) { + duk_bool_t uppercase) { duk_bitdecoder_ctx bd_ctx; /* fast path for ASCII */