mozilla/rust — Issue #1646: Make C-like enum's binary compatible with C enums
Author: kevina
Created: 2012-01-24 20:01:13+00:00
State: open

Now that we can specify explicit discriminant numbers (see #1393) to make then useful they need to use the same integer size as C does for the given platform.

For most cases making them 32bit will be suffice, but the C standard allows them to be different sizes depending on the possible values they can take.