summaryrefslogtreecommitdiff
path: root/labels.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2010-04-20 15:26:08 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2010-04-21 01:07:25 +0400
commitd7a64b72a2ca9c0a399545279f96a5b7e39b8b6d (patch)
treec43ff5b948a3d020c934365450a87eaeb2139186 /labels.c
parent92aa187f3ab5228caa95494e30a7efc06288802e (diff)
downloadnasm-d7a64b72a2ca9c0a399545279f96a5b7e39b8b6d.tar.gz
nasm-d7a64b72a2ca9c0a399545279f96a5b7e39b8b6d.tar.bz2
nasm-d7a64b72a2ca9c0a399545279f96a5b7e39b8b6d.zip
labels.c: lookup_label -- should return bool unconditionally
Better to not put return under condition. It was bad. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'labels.c')
-rw-r--r--labels.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/labels.c b/labels.c
index 32937b3..e727c15 100644
--- a/labels.c
+++ b/labels.c
@@ -193,8 +193,9 @@ bool lookup_label(char *label, int32_t *segment, int64_t *offset)
*segment = lptr->defn.segment;
*offset = lptr->defn.offset;
return true;
- } else
- return false;
+ }
+
+ return false;
}
bool is_extern(char *label)