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

A ^= B is not the same as A = A ^ B when A is a real #9571

Closed
2 tasks done
YellowAfterlife opened this issue Feb 26, 2025 · 2 comments
Closed
2 tasks done

A ^= B is not the same as A = A ^ B when A is a real #9571

YellowAfterlife opened this issue Feb 26, 2025 · 2 comments
Assignees
Labels
runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Milestone

Comments

@YellowAfterlife
Copy link

Description

Given the following,

function scr_a_bug() {
	var i, k = 1 << 53;
	i = 2147483647;
	show_debug_message($"i: {i}, is_real: {is_real(i)}, is_int64: {is_int64(i)}");
	i = i ^ k;
	show_debug_message($"i: {i}, is_real: {is_real(i)}, is_int64: {is_int64(i)}");
	i = 2147483647;
	i ^= k;
	show_debug_message($"i: {i}, is_real: {is_real(i)}, is_int64: {is_int64(i)}");
}

The output is

i: 2147483647, is_real: 1, is_int64: 0
i: 9007201402224639, is_real: 0, is_int64: 1
i: 9007201402224640, is_real: 1, is_int64: 0

Which is a little unexpected.

Project file

Expected Change

No response

Steps To Reproduce

  1. Open the test project
  2. Run in either VM or YYC
  3. Observe

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

2024.11.0 (Monthly)

Which platform(s) are you seeing the problem on?

Windows

Sample Package Attached?

  • I have attached my bug package

Sample Project Added?

  • I have included a small sample project
@YellowAfterlife YellowAfterlife added the runner-bug In-game bugs with the "GameMaker Studio 2" runtimes label Feb 26, 2025
@stuckie stuckie moved this from Triage to Todo in Team Workload Feb 27, 2025
@stuckie stuckie added this to the 2024.13 milestone Feb 27, 2025
@rwkay rwkay moved this from Todo to In Progress in Team Workload Mar 2, 2025
@rwkay
Copy link

rwkay commented Mar 3, 2025

Fixed in 2024.13

@rwkay rwkay closed this as completed Mar 3, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Team Workload Mar 3, 2025
@YYBartT YYBartT moved this from Done to Ready for QA in Team Workload Mar 3, 2025
@mgeddesGM
Copy link

verified as of IDE v2024.1300.0.768 Runtime v2024.1300.0.775

@mgeddesGM mgeddesGM moved this from Ready for QA to Verified in Team Workload Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Projects
Status: Verified
Development

No branches or pull requests

4 participants