Fix typo in DRC rule error reporting that causes crash.

This commit is contained in:
Jeff Young 2020-08-03 22:16:53 +01:00
parent dcd02539e3
commit 7e63376266
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}