From a59881fa04f0ce0054675de907401d28b2b205f2 Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 12 Mar 2019 20:21:38 +0800 Subject: ext/session: remove the redundant convert_to_long --- ext/session/mod_user.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/session/mod_user.c b/ext/session/mod_user.c index 1f03c86114..981e920bc1 100644 --- a/ext/session/mod_user.c +++ b/ext/session/mod_user.c @@ -189,13 +189,14 @@ PS_GC_FUNC(user) ps_call_handler(&PSF(gc), 1, args, &retval); if (Z_TYPE(retval) == IS_LONG) { - convert_to_long(&retval); return Z_LVAL(retval); } + /* This is for older API compatibility */ if (Z_TYPE(retval) == IS_TRUE) { return 1; } + /* Anything else is some kind of error */ return -1; // Error } -- cgit v1.2.1