summaryrefslogtreecommitdiffstats
path: root/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-02-03 14:15:05 -0500
committerTavian Barnes <tavianator@gmail.com>2010-02-03 14:15:05 -0500
commitca0a61249f45c77d9461071f9b122253a44b8460 (patch)
tree5a2e0ad5943655e30e7a968005412f88ea4fc527 /dimension
parent6f681178e9d39b66648f2e52db309ca5858e39fb (diff)
downloaddimension-ca0a61249f45c77d9461071f9b122253a44b8460.tar.xz
Fix compiler warning from last commit.
Diffstat (limited to 'dimension')
-rw-r--r--dimension/tokenize.c4
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");