mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-29 06:17:48 +00:00
Merge pull request #114 from Ben10do/fix-asm-tests
Fix issues in rgbasm raised by the tests
This commit is contained in:
@@ -142,8 +142,9 @@ void copyrept( void )
|
||||
{
|
||||
SLONG level=1, len, instring=0;
|
||||
char *src=pCurrentBuffer->pBuffer;
|
||||
char *bufferEnd = pCurrentBuffer->pBufferStart + pCurrentBuffer->nBufferSize;
|
||||
|
||||
while( *src && level )
|
||||
while( src < bufferEnd && level )
|
||||
{
|
||||
if( instring==0 )
|
||||
{
|
||||
@@ -221,8 +222,9 @@ void copymacro( void )
|
||||
{
|
||||
SLONG level=1, len, instring=0;
|
||||
char *src=pCurrentBuffer->pBuffer;
|
||||
char *bufferEnd = pCurrentBuffer->pBufferStart + pCurrentBuffer->nBufferSize;
|
||||
|
||||
while( *src && level )
|
||||
while( src < bufferEnd && level )
|
||||
{
|
||||
if( instring==0 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user