File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -576,11 +576,13 @@ typedef struct JSStringSlice {
576
576
577
577
static inline uint8_t *str8(JSString *p)
578
578
{
579
+ JSStringSlice *slice;
580
+
579
581
switch (p->kind) {
580
582
case JS_STRING_KIND_NORMAL:
581
583
return (void *)&p[1];
582
584
case JS_STRING_KIND_SLICE:
583
- JSStringSlice * slice = (void *)&p[1];
585
+ slice = (void *)&p[1];
584
586
return str8(slice->parent) + slice->start;
585
587
}
586
588
abort();
@@ -589,11 +591,13 @@ static inline uint8_t *str8(JSString *p)
589
591
590
592
static inline uint16_t *str16(JSString *p)
591
593
{
594
+ JSStringSlice *slice;
595
+
592
596
switch (p->kind) {
593
597
case JS_STRING_KIND_NORMAL:
594
598
return (void *)&p[1];
595
599
case JS_STRING_KIND_SLICE:
596
- JSStringSlice * slice = (void *)&p[1];
600
+ slice = (void *)&p[1];
597
601
return str16(slice->parent) + slice->start;
598
602
}
599
603
abort();
You can’t perform that action at this time.
0 commit comments