Fix: wrong offsets for locals when < -32768, installation error for 'show'
authorceriel <none@none>
Wed, 8 Nov 1995 11:09:14 +0000 (11:09 +0000)
committerceriel <none@none>
Wed, 8 Nov 1995 11:09:14 +0000 (11:09 +0000)
util/ego/share/proto.make
util/ego/share/show.c

index 077f7cf..7f67c8b 100644 (file)
@@ -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)
index 9504ea3..7741f0c 100644 (file)
@@ -55,7 +55,7 @@ offset getoff()
 {
        register offset n;
 
-       n = (unsigned) getshort();
+       n = getshort() & 0xFFFF;
        n |= ((offset) getshort() ) << 16;
        return n;
 }