projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92aa187
)
labels.c: lookup_label -- should return bool unconditionally
author
Cyrill Gorcunov
<gorcunov@gmail.com>
Tue, 20 Apr 2010 11:26:08 +0000
(15:26 +0400)
committer
Cyrill Gorcunov
<gorcunov@gmail.com>
Tue, 20 Apr 2010 21:07:25 +0000
(
01:07
+0400)
Better to not put return under condition. It was bad.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
labels.c
patch
|
blob
|
history
diff --git
a/labels.c
b/labels.c
index
32937b3
..
e727c15
100644
(file)
--- 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)