(range_test): Convert the constants to the unsigned

type before expanding the range test.

From-SVN: r2785
This commit is contained in:
Tom Wood 1992-11-24 02:08:38 +00:00
parent 6fefc9508b
commit 21431f802a

View File

@ -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,