On Tue, May 31, 2016 at 12:21:00PM -0600, Jason Gunthorpe wrote: > On Tue, May 31, 2016 at 09:12:23PM +0300, Leon Romanovsky wrote: > > > I understand from the description/standards that first enum declares > > type. > > No, you quoted the relevant standard: > > .. but shall be capable of representing the values of all the members > of the enumeration. .. > > Truncation is not allowed. I'm not convinced that it talks about truncation. From the same document: "The expression that defines the value of an enumeration constant shall be an integer constant expression that has a value representable as an int." > > Jason
Attachment:
signature.asc
Description: Digital signature