r8411: we need to use mprVarToNumber() instead of var->integer now, to cope with
authorAndrew Tridgell <tridge@samba.org>
Wed, 13 Jul 2005 05:30:23 +0000 (05:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:22:59 +0000 (13:22 -0500)
the 64 bit integer support

this fixes the exit status from smbscript
(This used to be commit f476e7aeec56a921fd286d3fe2cb0a229e57a9e8)

source4/scripting/ejs/smbscript.c

index 7e014716c2372046ce207110c0a790a887f24c23..dec9592c4632ec3c3685ec6ccb0dd01d712b9ace 100644 (file)
@@ -101,7 +101,7 @@ void ejs_exception(const char *reason)
        }
 
        return_var = ejsGetReturnValue(eid);
-       exit_status = return_var->integer;
+       exit_status = mprVarToNumber(return_var);
 
        ejsClose();