From 298546911675d1b57b7c12161a597453c0a42b53 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 8 Nov 1995 11:09:14 +0000 Subject: [PATCH] Fix: wrong offsets for locals when < -32768, installation error for 'show' --- util/ego/share/proto.make | 2 +- util/ego/share/show.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util/ego/share/proto.make b/util/ego/share/proto.make index 077f7cf7b..7f67c8bf0 100644 --- a/util/ego/share/proto.make +++ b/util/ego/share/proto.make @@ -85,7 +85,7 @@ $(SRC_DIR)/pop_push.h: \ show: \ $(SRC_DIR)/show.c - $(UCC) $(UCFLAGS) $(ULDFLAGS) -o show show.c $(UTIL_HOME)/lib.bin/em_data.$(ULIBSUF) + $(UCC) $(UCFLAGS) $(ULDFLAGS) -o show $(SRC_DIR)/show.c $(UTIL_HOME)/lib.bin/em_data.$(ULIBSUF) pr: @pr $(PRFILES) diff --git a/util/ego/share/show.c b/util/ego/share/show.c index 9504ea344..7741f0cbf 100644 --- a/util/ego/share/show.c +++ b/util/ego/share/show.c @@ -55,7 +55,7 @@ offset getoff() { register offset n; - n = (unsigned) getshort(); + n = getshort() & 0xFFFF; n |= ((offset) getshort() ) << 16; return n; } -- 2.34.1