mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
reserveSpace: don't assume one doubling is enough
This commit is contained in:
@@ -27,3 +27,10 @@ X EQUS "{X7E}"
|
||||
X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X
|
||||
|
||||
x: db 0
|
||||
|
||||
; this tests long RPN expressions being used as the RHS, as this once triggered
|
||||
; a realloc bug
|
||||
db 1+(x+X)
|
||||
|
||||
; likewise, a long symbol could result in an insufficient *initial* allocation
|
||||
db A00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000+0+0
|
||||
|
||||
Reference in New Issue
Block a user