From 67e269eba4adc1f0e11ab6e034ec5ce667a75f86 Mon Sep 17 00:00:00 2001 From: "Tobias S. Josefowitz" <tobij@tobij.de> Date: Thu, 21 May 2015 19:25:15 +0200 Subject: [PATCH] f_zero_type: cleanup --- src/builtin_functions.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/builtin_functions.c b/src/builtin_functions.c index e137e4eb39..a8dea8b41f 100644 --- a/src/builtin_functions.c +++ b/src/builtin_functions.c @@ -1603,9 +1603,7 @@ PMOD_EXPORT void f_zero_type(INT32 args) if(args < 1) SIMPLE_TOO_FEW_ARGS_ERROR("zero_type",1); - if((TYPEOF(Pike_sp[-args]) == T_OBJECT || - TYPEOF(Pike_sp[-args]) == T_FUNCTION) - && IS_DESTRUCTED(Pike_sp-args)) + if(IS_DESTRUCTED(Pike_sp-args)) { pop_n_elems(args); push_int(NUMBER_DESTRUCTED); -- GitLab