Cleanup variable usage and assignment in gerber reader

This commit is contained in:
Ian McInerney 2020-09-21 12:19:49 +01:00
parent e9aa9a759a
commit 70a7d1bc7c
1 changed files with 4 additions and 3 deletions

View File

@ -271,9 +271,10 @@ bool GERBER_FILE_IMAGE::ExecuteRS274XCommand( int aCommand, char* aBuff,
case 'M': // Sequence code (followed by one digit: the sequence len)
// (sometimes found after the X,Y sequence)
// Obscure option
code = *aText++;
aText++;
code = *aText;
if( ( *aText >= '0' ) && ( *aText<= '9' ) )
if( ( code >= '0' ) && ( code <= '9' ) )
aText++; // skip the digit
break;
@ -343,7 +344,7 @@ bool GERBER_FILE_IMAGE::ExecuteRS274XCommand( int aCommand, char* aBuff,
break;
case MIRROR_IMAGE: // command %MIA0B0*%, %MIA0B1*%, %MIA1B0*%, %MIA1B1*%
m_MirrorA = m_MirrorB = 0;
m_MirrorA = m_MirrorB = false;
while( *aText && *aText != '*' )
{