Skip to content

VM/YYC inconsistency for int64 * intConst #9520

Description

@YellowAfterlife

Description

function scr_a_bug() {
	var _seed = 12345678;
	var _state = int64(_seed);
	show_debug_message(_state * 1103515245 + 12345);
}

on VM, output is 13623643882873455
on YYC, output is 13623643882873456

Changing 1103515245 to int64(1103515245) makes YYC work like VM.

Project file

Expected Change

No response

Steps To Reproduce

  1. Open the test project
  2. Run in VM, note the output
  3. Run in YYC, note the output

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

Metadata

Metadata

Assignees

Labels

GMRT_CHECKEDFix was verified in the GMRT runnergms2-bugIn-game bugs with the "GameMaker Studio 2" runtimes

Fields

No fields configured for In-Game Bug.

Projects

Status
Verified

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions