Skip to content

Commit

Permalink
evalCall allow explicit null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Oct 14, 2024
1 parent 43fe560 commit 97d3bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hld/Eval.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 97d3bd9

Please sign in to comment.