summaryrefslogtreecommitdiff
path: root/scan.l
diff options
context:
space:
mode:
Diffstat (limited to 'scan.l')
-rw-r--r--scan.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/scan.l b/scan.l
index 28e46d5..e1f1aae 100644
--- a/scan.l
+++ b/scan.l
@@ -379,7 +379,7 @@ LEXOPT [aceknopr]
/* Check to see if we've already encountered this
* ccl.
*/
- if ( (cclval = ccllookup( (Char *) nmstr )) )
+ if ( (cclval = ccllookup( (Char *) nmstr )) != 0 )
{
if ( input() != ']' )
synerr( "bad character class" );
@@ -412,7 +412,7 @@ LEXOPT [aceknopr]
strcpy( nmstr, yytext + 1 );
nmstr[yyleng - 2] = '\0'; /* chop trailing brace */
- if ( ! (nmdefptr = ndlookup( nmstr )) )
+ if ( (nmdefptr = ndlookup( nmstr )) == 0 )
format_synerr( "undefined definition {%s}",
nmstr );