From 7c4423315f3f4145e37981b2dffc594fefde91a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Tue, 2 Jun 1998 18:16:10 +0200
Subject: [PATCH] Fixed unaligned access bug on OSF/1.

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

diff --git a/src/svalue.c b/src/svalue.c
index 834b66543d..491962f974 100644
--- a/src/svalue.c
+++ b/src/svalue.c
@@ -21,7 +21,7 @@
 #include <ctype.h>
 #include "queue.h"
 
-RCSID("$Id: svalue.c,v 1.34 1998/05/25 21:38:35 grubba Exp $");
+RCSID("$Id: svalue.c,v 1.35 1998/06/02 16:16:10 grubba Exp $");
 
 struct svalue dest_ob_zero = { T_INT, 0 };
 
@@ -894,13 +894,13 @@ void copy_svalues_recursively_no_free(struct svalue *to,
 }
 
 #ifdef DEBUG
-void check_short_svalue(union anything *u,TYPE_T type)
+void check_short_svalue(union anything *u, TYPE_T type)
 {
   static int inside=0;
 
   check_type(type);
   check_refs2(u,type);
-  if(!u->refs) return;
+  if ((type > MAX_REF_TYPE)||(!u->refs)) return;
 
   switch(type)
   {
-- 
GitLab