Added Johan's changes

This commit is contained in:
ceriel 1990-11-16 15:58:36 +00:00
parent 8ffaf72dfa
commit 99bfba6a45
2 changed files with 4 additions and 2 deletions

View file

@ -111,7 +111,7 @@ _include <signal.h>
#define lowb(z) ((int)(z) & 0xFF)
#define loww(z) ((int)(z) & 0xFFFF)
#define fitb(x) ((((x) + 0x80) & ~(valu_t)0xFF) == 0)
#define fitb(x) ((((x) + 0x80) & ~((int)0xFF)) == 0)
#define fitw(x) ((((x) + 0x8000L) & ~0xFFFFL) == 0)
#define fit(x) if (!(x)) nofit()

View file

@ -346,7 +346,9 @@ valu_t valu;
outname.on_foff = new_string(name);
outname.on_type = type;
outname.on_desc = desc;
outname.on_valu = valu & ~(((0xFFFFFFFF)<<(4*sizeof(valu_t)))<<(4*sizeof(valu_t)));
outname.on_valu = valu;
if (sizeof(valu) != sizeof(long))
outname.on_valu &= ~(((0xFFFFFFFF)<<(4*sizeof(valu_t)))<<(4*sizeof(valu_t)));
wr_name(&outname, 1);
}