diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-12 02:31:31 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:20:07 -0500 |
commit | 36bb0ffd4c59b17c7f942d874e18865707d3c696 (patch) | |
tree | 1b722b4e9593f9443b036e50c18d4654bc37dc85 /source4/lib/ejs/var.c | |
parent | 70278929fc3065febf7e2d0b538a30cfc073f0fd (diff) | |
download | samba-36bb0ffd4c59b17c7f942d874e18865707d3c696.tar.gz samba-36bb0ffd4c59b17c7f942d874e18865707d3c696.tar.bz2 samba-36bb0ffd4c59b17c7f942d874e18865707d3c696.zip |
r8336: enable 64 bit integer support in ejs
(This used to be commit 9dd41e78e1d0e5e4007d5063fbcc335abef43718)
Diffstat (limited to 'source4/lib/ejs/var.c')
-rw-r--r-- | source4/lib/ejs/var.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/ejs/var.c b/source4/lib/ejs/var.c index 2ba56987dd..843d2ff738 100644 --- a/source4/lib/ejs/var.c +++ b/source4/lib/ejs/var.c @@ -1796,7 +1796,7 @@ MprVar mprParseVar(char *buf, MprType preferredType) * Convert the variable to a boolean. Only for primitive types. */ -bool mprVarToBool(MprVar *vp) +bool mprVarToBool(const MprVar *vp) { mprAssert(vp); @@ -1886,7 +1886,7 @@ double mprVarToFloat(MprVar *vp) * Convert the variable to a number type. Only works for primitive types. */ -MprNum mprVarToNumber(MprVar *vp) +MprNum mprVarToNumber(const MprVar *vp) { #if BLD_FEATURE_NUM_TYPE_ID == MPR_TYPE_INT64 return mprVarToInteger64(vp); @@ -1919,7 +1919,7 @@ MprNum mprParseNumber(char *s) * Convert the variable to an Integer64 type. Only works for primitive types. */ -int64 mprVarToInteger64(MprVar *vp) +int64 mprVarToInteger64(const MprVar *vp) { mprAssert(vp); @@ -2034,7 +2034,7 @@ int64 mprParseInteger64(char *str) * Convert the variable to an Integer type. Only works for primitive types. */ -int mprVarToInteger(MprVar *vp) +int mprVarToInteger(const MprVar *vp) { mprAssert(vp); |