mirror of
https://github.com/php/php-src.git
synced 2025-08-17 14:38:49 +02:00
Merge branch 'pull-request/2742'
* pull-request/2742: Fixed bug #66364 (BCMath bcmul ignores scale parameter)
This commit is contained in:
commit
73af7a847c
10 changed files with 92 additions and 63 deletions
|
@ -110,7 +110,7 @@ _PROTOTYPE(void bc_init_num, (bc_num *num));
|
|||
|
||||
_PROTOTYPE(void bc_str2num, (bc_num *num, char *str, int scale));
|
||||
|
||||
_PROTOTYPE(zend_string *bc_num2str, (bc_num num));
|
||||
_PROTOTYPE(zend_string *bc_num2str_ex, (bc_num num, int scale));
|
||||
|
||||
_PROTOTYPE(void bc_int2num, (bc_num *num, int val));
|
||||
|
||||
|
@ -155,5 +155,6 @@ _PROTOTYPE(void bc_out_of_memory, (void));
|
|||
|
||||
#define bc_new_num(length, scale) _bc_new_num_ex((length), (scale), 0)
|
||||
#define bc_free_num(num) _bc_free_num_ex((num), 0)
|
||||
#define bc_num2str(num) bc_num2str_ex((num), (num->n_scale))
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue