Browse Source

[std] a bit of safety here

Rudy Ges 1 year ago
parent
commit
fd51af810f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/haxe/Log.hx

+ 1 - 1
std/haxe/Log.hx

@@ -30,7 +30,7 @@ class Log {
 	/**
 	/**
 		Format the output of `trace` before printing it.
 		Format the output of `trace` before printing it.
 	**/
 	**/
-	public static function formatOutput(v:Dynamic, infos:PosInfos):String {
+	public static function formatOutput(v:Dynamic, infos:Null<PosInfos>):String {
 		var str = Std.string(v);
 		var str = Std.string(v);
 		if (infos == null)
 		if (infos == null)
 			return str;
 			return str;