From 04eca6a6d74fcbb256258f29fbf2dceb22e5c2ab Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Sat, 14 Dec 2013 00:32:06 +0200 Subject: [PATCH] trivial cast type fix --- src/duk_unicode_support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duk_unicode_support.c b/src/duk_unicode_support.c index 99f9ca1b..5623accd 100644 --- a/src/duk_unicode_support.c +++ b/src/duk_unicode_support.c @@ -26,7 +26,7 @@ duk_small_int_t duk_unicode_get_xutf8_length(duk_codepoint_t cp) { } else if (x < 0x4000000UL) { /* 26 bits */ return 5; - } else if (x < (duk_uint32_t) 0x80000000UL) { + } else if (x < (duk_codepoint_t) 0x80000000UL) { /* 31 bits */ return 6; } else {