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

This code doesn't work! #241

Closed
ghost opened this issue Jun 2, 2023 · 3 comments
Closed

This code doesn't work! #241

ghost opened this issue Jun 2, 2023 · 3 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Jun 2, 2023

Compiled, but doesn't work!

class Test1 {
	function : Main(args : String[]) ~ Nil {
		Brun();
	}

	function : native : Brun() ~ Nil {
		N : Int := 9223372036854775807;
		i : Int;
		for(i := 1; i < N; i++) {
			"Brun"->PrintLine();
		}
	}
}

You could see I tried to force the type Int, but it doesn't work either if you forced Int or not.

@ghost
Copy link
Author

ghost commented Jun 2, 2023

Tried with N = 4294967295, doesn't work too. It will only work if N <= 2147483647.

@objeck objeck closed this as completed in 0a3f850 Jun 2, 2023
@objeck
Copy link
Owner

objeck commented Jun 2, 2023

Fixed. Old code left over from when the Windows runtime was 32-bit, and Linux/macOS was 64-bit. I looked across the code and did not find any other instances.

@objeck objeck self-assigned this Jun 2, 2023
@objeck objeck added the bug label Jun 2, 2023
@ghost
Copy link
Author

ghost commented Jun 3, 2023

Fixed. Old code left over from when the Windows runtime was 32-bit, and Linux/macOS was 64-bit. I looked across the code and did not find any other instances.

What do you think about making a new release?

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

No branches or pull requests

1 participant