[bugfix] signedness of ret val from pic_int
This commit is contained in:
parent
2bf2222519
commit
6bc702bd89
|
@ -63,7 +63,14 @@ pic_float(pic_value v)
|
||||||
return u.f;
|
return u.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define pic_int(v) ((v) & 0xfffffffful)
|
static inline int
|
||||||
|
pic_int(pic_value v)
|
||||||
|
{
|
||||||
|
union { int i; unsigned u; } u;
|
||||||
|
u.u = v & 0xfffffffful;
|
||||||
|
return u.i;
|
||||||
|
}
|
||||||
|
|
||||||
#define pic_sym(v) ((v) & 0xfffffffful)
|
#define pic_sym(v) ((v) & 0xfffffffful)
|
||||||
#define pic_char(v) ((v) & 0xfffffffful)
|
#define pic_char(v) ((v) & 0xfffffffful)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue