Fix 1 C UB
This commit is contained in:
parent
a3dfbb9c04
commit
96f16f958a
1 changed files with 1 additions and 1 deletions
2
all.h
2
all.h
|
@ -115,7 +115,7 @@ static inline int rtype(Ref r)
|
||||||
|
|
||||||
static inline int rsval(Ref r)
|
static inline int rsval(Ref r)
|
||||||
{
|
{
|
||||||
return ((int32_t)r.val << 3) >> 3;
|
return (int32_t)((int64_t)r.val << 3) >> 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum CmpI {
|
enum CmpI {
|
||||||
|
|
Loading…
Add table
Reference in a new issue