diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-02-03 14:15:05 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-02-03 14:15:05 -0500 |
commit | ca0a61249f45c77d9461071f9b122253a44b8460 (patch) | |
tree | 5a2e0ad5943655e30e7a968005412f88ea4fc527 /dimension | |
parent | 6f681178e9d39b66648f2e52db309ca5858e39fb (diff) | |
download | dimension-ca0a61249f45c77d9461071f9b122253a44b8460.tar.xz |
Fix compiler warning from last commit.
Diffstat (limited to 'dimension')
-rw-r--r-- | dimension/tokenize.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dimension/tokenize.c b/dimension/tokenize.c index f7f9187..5d18eea 100644 --- a/dimension/tokenize.c +++ b/dimension/tokenize.c @@ -297,7 +297,9 @@ dmnsn_if_buffer(int token, dmnsn_token_buffer *prev, if (nesting == 0) { break; } else if (nesting == 1 && buffered.type == DMNSN_T_ELSE) { - if (else_seen || tbuffer->prev && tbuffer->prev->type == DMNSN_T_WHILE) { + if (else_seen + || (tbuffer->prev && tbuffer->prev->type == DMNSN_T_WHILE)) + { dmnsn_diagnostic(filename, buffered.lloc.first_line, buffered.lloc.first_column, "syntax error, unexpected #else"); |