(range_test): Convert the constants to the unsigned
type before expanding the range test. From-SVN: r2785
This commit is contained in:
parent
6fefc9508b
commit
21431f802a
@ -2551,6 +2551,8 @@ range_test (jcode, type, lo_code, hi_code, var, lo_cst, hi_cst)
|
||||
{
|
||||
utype = unsigned_type (utype);
|
||||
var = convert (utype, var);
|
||||
lo_cst = convert (utype, lo_cst);
|
||||
hi_cst = convert (utype, hi_cst);
|
||||
}
|
||||
|
||||
return fold (convert (type,
|
||||
|
Loading…
Reference in New Issue
Block a user