From a609b5d99ae650136c89190495059d5b2d69e028 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Wed, 28 Jan 1998 20:07:48 -0800
Subject: [PATCH] optimizing bug fixed

Rev: src/las.c:1.48
---
 src/las.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/las.c b/src/las.c
index 4b707e6b8d..2af997ac3d 100644
--- a/src/las.c
+++ b/src/las.c
@@ -4,7 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
-RCSID("$Id: las.c,v 1.47 1998/01/29 00:30:34 hubbe Exp $");
+RCSID("$Id: las.c,v 1.48 1998/01/29 04:07:48 hubbe Exp $");
 
 #include "language.h"
 #include "interpret.h"
@@ -2233,7 +2233,11 @@ static struct svalue *is_stupid_func(node *n,
 
   n=CAR(n);
   if(!n || n->token != F_CONSTANT) return 0;
-  return &n->u.sval;
+
+  if((count_arguments(n->type) < 0) == !!vargs)
+    return &n->u.sval;
+
+  return 0;
 }
 
 int dooptcode(struct pike_string *name,
-- 
GitLab