Skip to content

Commit

Permalink
workaround Issue #17220
Browse files Browse the repository at this point in the history
  • Loading branch information
UplinkCoder committed Mar 1, 2017
1 parent 50d3af9 commit 3dc0fa9
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/bc_common.d
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ enum BCTypeEnum : ubyte
Null,
Void,

c8,
c16,
c32,
Char = c32,
/// signed by default
i8,
/// DITTO
Expand All @@ -94,6 +90,11 @@ enum BCTypeEnum : ubyte
/// DITTO
i64,

c8,
c16,
c32,
Char = c32,

u8,
u16,
u32,
Expand Down Expand Up @@ -273,12 +274,10 @@ BCValue imm32(uint value) pure @trusted
return ret;
}

BCValue i32(inout BCValue val) pure @trusted
BCValue i32(BCValue val) pure @safe
{
BCValue result = void;
result = val;
result.type.type = BCTypeEnum.i32;
return result;
val.type.type = BCTypeEnum.i32;
return val;
}


Expand Down

0 comments on commit 3dc0fa9

Please sign in to comment.