Cast all enum values to the final type
commitf49bd999bd2751b02981232b812bdc72ef0695e4
authorLinus Torvalds <torvalds@g5.osdl.org>
Thu, 3 Nov 2005 16:31:42 +0000 (3 08:31 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 3 Nov 2005 16:31:42 +0000 (3 08:31 -0800)
tree3b74ee82b1136ab58d2b95b37daec8f6aae4304d
parent51d3e72397c1245770349990a1149c1c1bf4d316
Cast all enum values to the final type

The type of an enum is determined by the type of all of its entries,
which means that while we may parse it in one type, it might end up with
another type in the end.  We used to just switch the types around, but
that didn't properly upgrade the actual values to the new type.

The trivial fix is to just keep a list of entries around, and then go
back and cast the values at the end.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
parse.c