- switch (target_type.BuildinType) {
- case BuildinTypeSpec.Type.SByte:
- return new ConvCast (new OperatorCast (expr, expr.Type, rc.BuildinTypes.UInt, true), target_type, ConvCast.Mode.U4_I1);
- case BuildinTypeSpec.Type.Short:
- return new ConvCast (new OperatorCast (expr, expr.Type, rc.BuildinTypes.UInt, true), target_type, ConvCast.Mode.U4_I2);
- case BuildinTypeSpec.Type.Int:
- return EmptyCast.Create (new OperatorCast (expr, expr.Type, rc.BuildinTypes.UInt, true), target_type);
- case BuildinTypeSpec.Type.UInt:
+ switch (target_type.BuiltinType) {
+ case BuiltinTypeSpec.Type.SByte:
+ return new ConvCast (new OperatorCast (expr, expr.Type, rc.BuiltinTypes.UInt, true), target_type, ConvCast.Mode.U4_I1);
+ case BuiltinTypeSpec.Type.Short:
+ return new ConvCast (new OperatorCast (expr, expr.Type, rc.BuiltinTypes.UInt, true), target_type, ConvCast.Mode.U4_I2);
+ case BuiltinTypeSpec.Type.Int:
+ return EmptyCast.Create (new OperatorCast (expr, expr.Type, rc.BuiltinTypes.UInt, true), target_type);
+ case BuiltinTypeSpec.Type.UInt: