Re: [wide-int 1/8] Fix some off-by-one errors and bounds tests

2014-04-23 Thread Richard Biener
On Tue, Apr 22, 2014 at 9:45 PM, Richard Sandiford wrote: > This is the first of 8 patches from reading through the diff with mainline. > Some places had an off-by-one error on an index and some used "<= 0" > instead of ">= 0". > > I think we should use MAX_BITSIZE_MODE_ANY_MODE rather than > MAX_

[wide-int 1/8] Fix some off-by-one errors and bounds tests

2014-04-22 Thread Richard Sandiford
This is the first of 8 patches from reading through the diff with mainline. Some places had an off-by-one error on an index and some used "<= 0" instead of ">= 0". I think we should use MAX_BITSIZE_MODE_ANY_MODE rather than MAX_BITSIZE_MODE_ANY_INT when handling floating-point modes. Two hunks co