mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
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>
This commit is contained in:
parent
1939b69fdf
commit
1b50fec496
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user