From 45ab0cd8d7f7de988594944eeb934c8a19ff6cf3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Mon, 13 May 2002 22:43:17 +0200
Subject: [PATCH] Bugfix for the bytecode case.

Rev: src/encode.c:1.145
---
 src/encode.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/encode.c b/src/encode.c
index a432f30226..9ea61a1533 100644
--- a/src/encode.c
+++ b/src/encode.c
@@ -26,7 +26,7 @@
 #include "bignum.h"
 #include "pikecode.h"
 
-RCSID("$Id: encode.c,v 1.144 2002/05/11 00:28:59 nilsson Exp $");
+RCSID("$Id: encode.c,v 1.145 2002/05/13 20:43:17 grubba Exp $");
 
 /* #define ENCODE_DEBUG */
 
@@ -2729,7 +2729,10 @@ static void decode_value2(struct decode_data *data)
 	  getdata2(p->relocations, p->num_relocations);
 
 #ifdef DECODE_PROGRAM
-	  DECODE_PROGRAM(p);
+	  {
+	    int byteorder = PIKE_BYTEORDER;	/* FIXME: Used by bytecode.h */
+	    DECODE_PROGRAM(p);
+	  }
 #endif /* DECODE_PROGRAM */
 	  make_program_executable(p);
 
-- 
GitLab