Skip to content
New issue

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

cast from long to int should not be removed #2398

Closed
yyjdelete opened this issue May 7, 2021 · 1 comment
Closed

cast from long to int should not be removed #2398

yyjdelete opened this issue May 7, 2021 · 1 comment
Labels
Bug Decompiler The decompiler engine itself

Comments

@yyjdelete
Copy link
Contributor

yyjdelete commented May 7, 2021

Input code

0x100000000=>""

		static void XXX(long value)
		{
			if ((int)value != 0)
				Console.WriteLine("TRUE");
		}

Erroneous output

0x100000000=>"TRUE"

		static void XXX(long value)
		{
			if (value != 0)
				Console.WriteLine("TRUE");
		}

Details

  • Product in use: ILSpy
  • Version in use: 7.0.0.6488(broken since 3.0)
@yyjdelete yyjdelete added Bug Decompiler The decompiler engine itself labels May 7, 2021
@copslock
Copy link

copslock commented May 9, 2021

Hi! Can you contact through tencent QQ?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2021
ElektroKill added a commit to dnSpyEx/ILSpy that referenced this issue Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Decompiler The decompiler engine itself
Projects
None yet
Development

No branches or pull requests

2 participants