mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-12-01 02:03:02 +00:00
Warn for out of bounds
This commit is contained in:
parent
540fd70b9b
commit
6799b5f78e
1 changed files with 1 additions and 0 deletions
|
@ -110,6 +110,7 @@ static void
|
|||
pushbyte(Uint8 b, int lit)
|
||||
{
|
||||
if(lit) pushbyte(findopcode("LIT"), 0);
|
||||
if(p.ptr > LENGTH) fprintf(stderr, "--- Out of bounds(%04x:%02x)\n", p.ptr, b);
|
||||
p.data[p.ptr++] = b;
|
||||
p.length = p.ptr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue