IPP Mail Archive: Re: IPP> MOD - Should enums be 0 to 2**31-1, not -2**

Re: IPP> MOD - Should enums be 0 to 2**31-1, not -2**

Carl Kugler (kugler@us.ibm.com)
4 Jun 1998 06:45:05 -0000

> In section 4.1.6 'enum' it says that the "integer value is in the range
> from -2**31 (MIN) to 2**31-1(MAX)."
>
> Shouldn't enums be 0 to 2**31-1, not -2**31 to 2**31-1?
>
> There shouldn't be negative values, correct?
>
> We also don't happen to use 0 values either to align with SNMP MIB
> enums, but I don't see that we should make the range start at 1.
>
I do. I say make them 1 to 2**31-1. They're just arbitrary values anyway, and it's not like we're going to run out.

> Tom
>
>