Skip to content

Commit

Permalink
添加了遗漏的函数
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangYyang committed Jan 8, 2022
1 parent f9ff099 commit ed7b369
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libbf.c
Original file line number Diff line number Diff line change
Expand Up @@ -7156,7 +7156,7 @@ LIBBF_API(int) bfdec_pow_ui(bfdec_t *r, const bfdec_t *a, limb_t b)
return ret;
}

char *bfdec_ftoa(size_t *plen, const bfdec_t *a, limb_t prec, bf_flags_t flags)
LIBBF_API(char*) bfdec_ftoa(size_t *plen, const bfdec_t *a, limb_t prec, bf_flags_t flags)
{
return bf_ftoa_internal(plen, (const bf_t *)a, 10, prec, flags, TRUE);
}
Expand Down
2 changes: 1 addition & 1 deletion libbf.h
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ extern "C" {
exponents */
#define BF_FTOA_JS_QUIRKS (1 << 22)

char* bf_ftoa(size_t* plen, const bf_t* a, int radix, limb_t prec,
LIBBF_API(char*) bf_ftoa(size_t* plen, const bf_t* a, int radix, limb_t prec,
bf_flags_t flags);

/* modulo 2^n instead of saturation. NaN and infinity return 0 */
Expand Down

0 comments on commit ed7b369

Please sign in to comment.