Re: [PATCH 2/4] Error on bad count number

Pedro Alves
2014-03-07T13:27:21Z

On 03/07/2014 09:38 AM, Yao Qi wrote:
> On 03/06/2014 08:21 PM, Pedro Alves wrote:
>> > AFAICS, get_number handles negative numbers. E.g.,
>> >
> Yes, get_number handles negative, but is it expected for get_number
> to handle negative?

Nothing in a name like "get number" suggests to me only positive
numbers would be returned. I think it should be up to the
caller to handle whether the returned value is valid in
that context.

--
Pedro Alves