mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-08 19:09:36 +00:00
Fix "REPT 0" not being a no-op
This commit is contained in:
@@ -258,6 +258,8 @@ void fstk_RunRept(uint32_t count, int32_t nReptLineNo, char *body, size_t size)
|
|||||||
{
|
{
|
||||||
dbgPrint("Running REPT(%" PRIu32 ")\n", count);
|
dbgPrint("Running REPT(%" PRIu32 ")\n", count);
|
||||||
|
|
||||||
|
if (count == 0)
|
||||||
|
return;
|
||||||
uint32_t reptDepth = contextStack->reptDepth;
|
uint32_t reptDepth = contextStack->reptDepth;
|
||||||
|
|
||||||
newContext(reptDepth + 1);
|
newContext(reptDepth + 1);
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
REPT 0
|
||||||
|
WARN "2"
|
||||||
|
ENDR
|
||||||
Reference in New Issue
Block a user