We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This seems to be a regression from the fixes for #1796
I've found two cases where uint casts and constant conversions to unsigned are unnecessary. Possibly also applies to other unsigned integral types.
uint
Decompiler settings reset to default.
Source as entered in LINQPad 5:
int Foo(int x) { if ((x & 0x10) != 0) return 1; return 0; } byte Bar(int x) { return (byte)(x & 0x10); }
Assembly: query_jsdiku.zip
Actual output:
private int Foo(int x) { if (((uint)x & 0x10u) != 0) { return 1; } return 0; } private byte Bar(int x) { return (byte)((uint)x & 0x10u); }
Expected output (as decompiled by ILSpy 6.1):
private int Foo(int x) { if ((x & 0x10) != 0) { return 1; } return 0; } private byte Bar(int x) { return (byte)(x & 0x10); }
The text was updated successfully, but these errors were encountered:
8c440f4
No branches or pull requests
This seems to be a regression from the fixes for #1796
I've found two cases where
uint
casts and constant conversions to unsigned are unnecessary. Possibly also applies to other unsigned integral types.Input code
Decompiler settings reset to default.
Source as entered in LINQPad 5:
Assembly: query_jsdiku.zip
Erroneous output
Actual output:
Expected output (as decompiled by ILSpy 6.1):
Details
The text was updated successfully, but these errors were encountered: