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

This commit is contained in:
ceriel 1995-11-08 11:09:14 +00:00
parent c1738933d7
commit 2985469116
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ $(SRC_DIR)/pop_push.h: \
show: \ show: \
$(SRC_DIR)/show.c $(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:
@pr $(PRFILES) @pr $(PRFILES)

View file

@ -55,7 +55,7 @@ offset getoff()
{ {
register offset n; register offset n;
n = (unsigned) getshort(); n = getshort() & 0xFFFF;
n |= ((offset) getshort() ) << 16; n |= ((offset) getshort() ) << 16;
return n; return n;
} }