File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,11 @@ typedef uint8_t lit_utf8_byte_t;
114
114
*/
115
115
typedef uint32_t lit_utf8_size_t ;
116
116
117
+ /**
118
+ * Size of a magic string in bytes
119
+ */
120
+ typedef uint8_t lit_magic_size_t ;
121
+
117
122
/**
118
123
* Unicode code point
119
124
*/
Original file line number Diff line number Diff line change 20
20
/* *
21
21
* Lengths of magic strings
22
22
*/
23
- static lit_utf8_size_t lit_magic_string_sizes[LIT_MAGIC_STRING__COUNT];
23
+ static lit_magic_size_t lit_magic_string_sizes[LIT_MAGIC_STRING__COUNT];
24
24
25
25
/* *
26
26
* External magic strings data array, count and lengths
@@ -52,7 +52,7 @@ lit_magic_strings_init (void)
52
52
id < LIT_MAGIC_STRING__COUNT;
53
53
id = (lit_magic_string_id_t ) (id + 1 ))
54
54
{
55
- lit_magic_string_sizes[id] = lit_zt_utf8_string_size (lit_get_magic_string_utf8 (id));
55
+ lit_magic_string_sizes[id] = ( lit_magic_size_t ) lit_zt_utf8_string_size (lit_get_magic_string_utf8 (id));
56
56
57
57
#ifndef JERRY_NDEBUG
58
58
ecma_magic_string_max_length = JERRY_MAX (ecma_magic_string_max_length, lit_magic_string_sizes[id]);
You can’t perform that action at this time.
0 commit comments