Mantis

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0022011GameMaker Runner[All Projects] Windows (YYC)Public2016-06-19 22:572016-06-23 15:00
ReporterYellowAfterlife 
Assigned ToRussell Kay 
PriorityLowSeverityB - MajorReproducibility100%
StatusClosedResolutionFixed 
PlatformWindowsOSWindows 8OS Version8.1
Summary0022011: Windows (YYC): `repeat (1) continue;` is an infinite loop
Description
repeat (1) continue;

compiles to
int __rep1__ = 1;
while( __rep1__ > 0 ) {
    continue;
    --__rep1__;
}

which, as one can expect, is an infinite loop.

I'd like to propose to use
int __rep1__ = 1;
while( --__rep1__ >= 0 ) {
    continue;
}

instead.
Or a for-loop. Those work too.
Additional InformationReproduces in 1.4.1757 alike.
GM Version1.99.475
Attached Files? file icon a_bug.gmz [^] (43,173 bytes) 2016-06-19 22:57

- Relationships

-  Notes
(0044045)
Russell Kay (Manager)
2016-06-20 10:35

Fixed in gitlab 924862d
(0044227)
Stewart Bishop (Administrator)
2016-06-23 15:00

Confirming that this now works as expected.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker