diff --git a/util/led/Makefile b/util/led/Makefile index 28888c719..5d388d111 100644 --- a/util/led/Makefile +++ b/util/led/Makefile @@ -6,10 +6,11 @@ EMHOME = ../.. LIBDIR= $(EMHOME)/lib +MODLIBDIR = $(EMHOME)/modules/lib PREFLAGS= -I$(EMHOME)/h -DNDEBUG -DNASSERT CFLAGS = $(PREFLAGS) -O LDFLAGS = -i -LDLIBS = $(EMHOME)/modules/lib/libstring.a $(EMHOME)/modules/lib/libobject.a +LDLIBS = $(MODLIBDIR)/libstring.a $(MODLIBDIR)/libobject.a LINTFLAGS=-phbxa $(PREFLAGS) PR = pr PRFLAGS = diff --git a/util/led/finish.c b/util/led/finish.c index 64eed025e..a34b1b54f 100644 --- a/util/led/finish.c +++ b/util/led/finish.c @@ -61,13 +61,13 @@ adjust_names(name, head, chars) register char *chars; { register int cnt; - register ind_t charoff; + register long charoff; cnt = head->oh_nname; charoff = OFF_CHAR(*head); while (cnt--) { if (name->on_foff != (long)0) - name->on_mptr = chars + name->on_foff - charoff; + name->on_mptr = chars + (ind_t)(name->on_foff - charoff); name++; } }