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>
This commit is contained in:
parent
92aa187f3a
commit
d7a64b72a2
1 changed files with 3 additions and 2 deletions
5
labels.c
5
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)
|
||||
|
|
Loading…
Reference in a new issue