diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2020-07-02 20:48:43 -0700 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2020-07-02 20:48:43 -0700 |
commit | 1b50fec4963cc99465d153c3c4e8bb669e12de57 (patch) | |
tree | 0539a061dcc1114df363e409c49cb2a9db8bc3e2 | |
parent | 1939b69fdf9d644eb611093198110c20a8614527 (diff) | |
download | nasm-1b50fec4963cc99465d153c3c4e8bb669e12de57.tar.gz |
outlib: fix infinite recursion due to incorrect wrapping
recursion: see recursion.
A wrapper function needs to call the function being wrapped, not
itself.
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
-rw-r--r-- | output/outlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/output/outlib.h b/output/outlib.h index a0b31245..7f6a7893 100644 --- a/output/outlib.h +++ b/output/outlib.h @@ -254,7 +254,7 @@ static inline uint64_t ol_nsects(void) extern int32_t _ol_new_subsection(struct ol_sect *sect); static inline int32_t ol_new_subsection(O_Section *sect) { - return ol_new_subsection((struct ol_sect *)sect); + return _ol_new_subsection((struct ol_sect *)sect); } /* |