Fix typo in DRC rule error reporting that causes crash.
This commit is contained in:
parent
dcd02539e3
commit
7e63376266
|
@ -772,7 +772,7 @@ bool COMPILER::generateUCode( UCODE* aCode, CONTEXT* aPreflightContext )
|
|||
if( !vref )
|
||||
{
|
||||
msg.Printf( _( "Unrecognized item '%s'" ), node->value.str );
|
||||
reportError( msg, node->leaf[0]->srcPos - (int) strlen( node->value.str ) );
|
||||
reportError( msg, node->srcPos - (int) strlen( node->value.str ) );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue