diff options
author | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2014-11-18 00:41:19 +1100 |
---|---|---|
committer | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2014-11-18 00:41:19 +1100 |
commit | e610f09262234205a819627d160cd1ac3f7c3251 (patch) | |
tree | cdc6e355a07b201aaf7068213791d494abf641fa | |
parent | 0cf391def6aebfbab8dd6431bf55f43e9bc97434 (diff) |
Fix for rust nightly
-rw-r--r-- | src/gen.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -635,6 +635,8 @@ fn cunion_to_rs(ctx: &mut GenCtx, name: String, layout: Layout, fields: Vec<Fiel } fn cenum_to_rs(ctx: &mut GenCtx, name: String, kind: IKind, items: Vec<EnumItem>) -> Vec<P<ast::Item>> { + use std::num::SignedInt; + let ty = TInt(kind, Layout::zero()); let ty_id = rust_type_id(ctx, name); let ty_def = ctypedef_to_rs(ctx, ty_id, &ty); |