summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs/smbcalls_nbt.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/ejs/smbcalls_nbt.c')
-rw-r--r--source4/scripting/ejs/smbcalls_nbt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/ejs/smbcalls_nbt.c b/source4/scripting/ejs/smbcalls_nbt.c
index a4dc943f51..16c4e6aaee 100644
--- a/source4/scripting/ejs/smbcalls_nbt.c
+++ b/source4/scripting/ejs/smbcalls_nbt.c
@@ -60,7 +60,7 @@ static int ejs_resolve_name(MprVarHandle eid, int argc, struct MprVar **argv)
if (argc == 2) {
make_nbt_name_client(&name, mprToString(argv[1]));
} else {
- if (argv[1]->type != MPR_TYPE_INT) {
+ if (!mprVarIsNumber(argv[1]->type)) {
ejsSetErrorMsg(eid, "resolveName invalid arguments");
goto done;
}