mozilla/rust — Issue #1647: enum discriminant ought to be 32 bit
Author: nikomatsakis
Created: 2012-01-24 20:04:10+00:00
State: open

We use `int not `i32`. This is both wasteful and not compatible with C, where enums are always C integers (`i32`). We ought to fix this but #1645 makes it hard to do in general.

However, we could make this work in the special case of C-like enums, by changing `trans::type_of_tag()` to represent such tags as ints.