From d5f211faa2f12e522dd2b69982dbfcbfd417c6fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Thu, 27 Feb 1997 00:03:40 -0800
Subject: [PATCH] bugfix for backtrace()

Rev: src/interpret.c:1.24
Rev: src/interpret.h:1.9
---
 src/interpret.c | 4 ++--
 src/interpret.h | 2 --
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/interpret.c b/src/interpret.c
index 96cae1370e..9e54bbbcda 100644
--- a/src/interpret.c
+++ b/src/interpret.c
@@ -4,7 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
-RCSID("$Id: interpret.c,v 1.23 1997/01/30 03:51:32 hubbe Exp $");
+RCSID("$Id: interpret.c,v 1.24 1997/02/27 08:03:39 hubbe Exp $");
 #include "interpret.h"
 #include "object.h"
 #include "program.h"
@@ -1314,9 +1314,9 @@ void apply_low(struct object *o, int fun, int args)
 #ifdef DEBUG
     if(num_locals < num_args)
       fatal("Wrong number of arguments or locals in function def.\n");
+#endif
     fp->num_locals=num_locals;
     fp->num_args=num_args;
-#endif
     eval_instruction(pc);
 #ifdef DEBUG
     if(sp<evaluator_stack)
diff --git a/src/interpret.h b/src/interpret.h
index 7092f6e233..9760b27888 100644
--- a/src/interpret.h
+++ b/src/interpret.h
@@ -22,10 +22,8 @@ struct frame
   struct inherit context;
   char *current_storage;
   INT32 fun;
-#ifdef DEBUG
   INT16 num_locals;
   INT16 num_args;
-#endif
 };
 
 #ifdef DEBUG
-- 
GitLab