jscript: Don't use VARTYPE as is in literal_t.
diff --git a/dlls/jscript/lex.c b/dlls/jscript/lex.c
index 43089d3..cd53bd9 100644
--- a/dlls/jscript/lex.c
+++ b/dlls/jscript/lex.c
@@ -369,7 +369,7 @@
{
literal_t *ret = parser_alloc(ctx, sizeof(literal_t));
- ret->vt = VT_I4;
+ ret->type = LT_INT;
ret->u.lval = l;
return ret;
@@ -447,7 +447,7 @@
}
*literal = parser_alloc(ctx, sizeof(literal_t));
- (*literal)->vt = VT_R8;
+ (*literal)->type = LT_DOUBLE;
(*literal)->u.dval = (double)d*pow(10, exp);
return tNumericLiteral;
@@ -801,7 +801,7 @@
add_object_literal(ctx, regexp);
ret = parser_alloc(ctx, sizeof(literal_t));
- ret->vt = VT_DISPATCH;
+ ret->type = LT_DISPATCH;
ret->u.disp = (IDispatch*)_IDispatchEx_(regexp);
return ret;
}