Przeglądaj źródła

[eval] fix `macro $v{string}`

Simon Krajewski 7 lat temu
rodzic
commit
8ce16025ce
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/macro/eval/evalMain.ml

+ 1 - 1
src/macro/eval/evalMain.ml

@@ -397,7 +397,7 @@ let rec value_to_expr v p =
 	| VFalse -> (EConst (Ident "false"),p)
 	| VInt32 i -> (EConst (Int (Int32.to_string i)),p)
 	| VFloat f -> haxe_float f p
-	| VString s -> (EConst (String (Lazy.force s.sstring)),p)
+	| VString s -> (EConst (String (EvalString.get s)),p)
 	| VArray va -> (EArrayDecl (List.map (fun v -> value_to_expr v p) (EvalArray.to_list va)),p)
 	| VObject o -> (EObjectDecl (List.map (fun (k,v) ->
 			let n = rev_hash_s k in