Просмотр исходного кода

Fix: wrong offsets for locals when < -32768, installation error for 'show'

ceriel 28 лет назад
Родитель
Сommit
2985469116
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      util/ego/share/proto.make
  2. 1 1
      util/ego/share/show.c

+ 1 - 1
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)

+ 1 - 1
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;
 }