diff options
Diffstat (limited to 'ChocolArm64/Translation/AILOpCodeConst.cs')
| -rw-r--r-- | ChocolArm64/Translation/AILOpCodeConst.cs | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/ChocolArm64/Translation/AILOpCodeConst.cs b/ChocolArm64/Translation/AILOpCodeConst.cs index 80150ec5..fee86407 100644 --- a/ChocolArm64/Translation/AILOpCodeConst.cs +++ b/ChocolArm64/Translation/AILOpCodeConst.cs @@ -55,24 +55,8 @@ namespace ChocolArm64.Translation { switch (Type) { - case ConstType.Int32: Context.Generator.EmitLdc_I4(Value.I4); break; - - case ConstType.Int64: - { - if (Value.I8 >= int.MinValue && - Value.I8 <= int.MaxValue) - { - Context.Generator.EmitLdc_I4(Value.I4); - - Context.Generator.Emit(OpCodes.Conv_I8); - } - else - { - Context.Generator.Emit(OpCodes.Ldc_I8, Value.I8); - } - break; - } - + case ConstType.Int32: Context.Generator.EmitLdc_I4(Value.I4); break; + case ConstType.Int64: Context.Generator.Emit(OpCodes.Ldc_I8, Value.I8); break; case ConstType.Single: Context.Generator.Emit(OpCodes.Ldc_R4, Value.R4); break; case ConstType.Double: Context.Generator.Emit(OpCodes.Ldc_R8, Value.R8); break; } |
