Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Question: ImportConvert unsigned parameter is always false #8348

Open
yowl opened this issue Sep 26, 2020 · 1 comment
Open

Question: ImportConvert unsigned parameter is always false #8348

yowl opened this issue Sep 26, 2020 · 1 comment

Comments

@yowl
Copy link
Contributor

yowl commented Sep 26, 2020

ImportConvert in

case ILOpcode.conv_ovf_i1:
ImportConvert(WellKnownType.SByte, true, false);
break;
case ILOpcode.conv_ovf_u1:
ImportConvert(WellKnownType.Byte, true, false);
break;
case ILOpcode.conv_ovf_i2:
ImportConvert(WellKnownType.Int16, true, false);
break;
case ILOpcode.conv_ovf_u2:
ImportConvert(WellKnownType.UInt16, true, false);
break;
case ILOpcode.conv_ovf_i4:
ImportConvert(WellKnownType.Int32, true, false);
break;
case ILOpcode.conv_ovf_u4:
ImportConvert(WellKnownType.UInt32, true, false);
break;
case ILOpcode.conv_ovf_i8:
ImportConvert(WellKnownType.Int64, true, false);
break;
case ILOpcode.conv_ovf_u8:
is always passed false for the unsigned parameter (the last parameter), even on the unsigned conversions, conv_ovf_u1 Is there a reason for that?

@jkotas
Copy link
Member

jkotas commented Sep 26, 2020

Looks like a bug

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants