summaryrefslogtreecommitdiff
path: root/preproc.c
diff options
context:
space:
mode:
authorPhilipp Kloke <philipp.kloke@web.de>2013-03-31 12:01:23 +0200
committerCyrill Gorcunov <gorcunov@gmail.com>2013-04-01 02:13:41 +0400
commitb432f5774123e20a210c473a85c102333514d1f1 (patch)
treeb2df92b4b6240cd6d30f62de761a2d58b26527a0 /preproc.c
parent91a2f99346212684c2c87df835fc0791dcc9ad96 (diff)
downloadnasm-b432f5774123e20a210c473a85c102333514d1f1.tar.gz
nasm-b432f5774123e20a210c473a85c102333514d1f1.tar.bz2
nasm-b432f5774123e20a210c473a85c102333514d1f1.zip
Fixed wrong/redundant comparison according to documentation in comment above.
Bug found by: CppCheck 1.59 (static source analysis tool) Signed-off-by: Philipp Kloke <philipp.kloke@web.de> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'preproc.c')
-rw-r--r--preproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/preproc.c b/preproc.c
index 0ca360e..8984a52 100644
--- a/preproc.c
+++ b/preproc.c
@@ -2175,7 +2175,7 @@ static int do_directive(Token * tline)
* since they are known to be buggy at moment, we need to fix them
* in future release (2.09-2.10)
*/
- if (i == PP_RMACRO || i == PP_RMACRO || i == PP_EXITMACRO) {
+ if (i == PP_RMACRO || i == PP_IRMACRO || i == PP_EXITMACRO) {
error(ERR_NONFATAL, "unknown preprocessor directive `%s'",
tline->text);
return NO_DIRECTIVE_FOUND;