From 53fd50acc0a9fc657c461b63d80cd3ea3bb86b1f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Thu, 1 Sep 2005 15:44:51 +0200
Subject: [PATCH] Bugfix for constant objects with inherit level.

Rev: src/las.c:1.370
---
 src/las.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/las.c b/src/las.c
index dac8a6f041..b900ae0e70 100644
--- a/src/las.c
+++ b/src/las.c
@@ -2,7 +2,7 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: las.c,v 1.369 2005/08/29 18:33:51 grubba Exp $
+|| $Id: las.c,v 1.370 2005/09/01 13:44:51 grubba Exp $
 */
 
 #include "global.h"
@@ -2006,8 +2006,8 @@ node *low_mkconstantsvaluenode(struct svalue *s)
   res->token = F_CONSTANT;
   assign_svalue_no_free(& res->u.sval, s);
 #ifdef SHARED_NODES
-  if (s->type != T_INT && s->type != T_FUNCTION)
-    /* The subtype is part of the hash, so make sure it got a defined
+  if (s->type != T_INT && s->type != T_FUNCTION && s->type != T_OBJECT)
+    /* The subtype is part of the hash, so make sure it gets a defined
      * value here. */
     res->u.sval.subtype = 0;
 #endif
-- 
GitLab