From 97d3bd964a99961681a9522bde100c2f03ddf24c Mon Sep 17 00:00:00 2001 From: Yuxiao Mao Date: Mon, 14 Oct 2024 08:30:06 +0200 Subject: [PATCH] evalCall allow explicit null pointer --- hld/Eval.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hld/Eval.hx b/hld/Eval.hx index 29418c7..72ff736 100644 --- a/hld/Eval.hx +++ b/hld/Eval.hx @@ -446,7 +446,7 @@ class Eval { setReg(r, Pointer.make(v.low, v.high)); case _ if( v.t.isPtr() ): var ptr = getPtr(v); - if( ptr.isNull() ) { + if( ptr == null ) { var msg = "Unsupported arg "+valueStr(v)+":"+typeStr(v.t); msg += v.v.match(VString(_)) ? " literal" : " null pointer"; throw msg;