Added Johan's changes
This commit is contained in:
parent
8ffaf72dfa
commit
99bfba6a45
2 changed files with 4 additions and 2 deletions
|
@ -111,7 +111,7 @@ _include <signal.h>
|
||||||
#define lowb(z) ((int)(z) & 0xFF)
|
#define lowb(z) ((int)(z) & 0xFF)
|
||||||
#define loww(z) ((int)(z) & 0xFFFF)
|
#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 fitw(x) ((((x) + 0x8000L) & ~0xFFFFL) == 0)
|
||||||
|
|
||||||
#define fit(x) if (!(x)) nofit()
|
#define fit(x) if (!(x)) nofit()
|
||||||
|
|
|
@ -346,7 +346,9 @@ valu_t valu;
|
||||||
outname.on_foff = new_string(name);
|
outname.on_foff = new_string(name);
|
||||||
outname.on_type = type;
|
outname.on_type = type;
|
||||||
outname.on_desc = desc;
|
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);
|
wr_name(&outname, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue