summaryrefslogtreecommitdiff
path: root/ext/bcmath/libbcmath/src/output.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2002-11-20 19:48:12 +0000
committerAndi Gutmans <andi@php.net>2002-11-20 19:48:12 +0000
commite6b7ab9db86710ca0c90d320bd43dcd4c2c06ed4 (patch)
tree93d192743b05e18f3402a8e131b0b4009b180f9d /ext/bcmath/libbcmath/src/output.c
parent33d0e4e1fbacd3acce5fab6bd3cc4c120223c46f (diff)
downloadphp-git-e6b7ab9db86710ca0c90d320bd43dcd4c2c06ed4.tar.gz
- Intermediate commit which works on making bcmath thread-safe.
Diffstat (limited to 'ext/bcmath/libbcmath/src/output.c')
-rw-r--r--ext/bcmath/libbcmath/src/output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bcmath/libbcmath/src/output.c b/ext/bcmath/libbcmath/src/output.c
index e41479d2d3..81bcc9afa0 100644
--- a/ext/bcmath/libbcmath/src/output.c
+++ b/ext/bcmath/libbcmath/src/output.c
@@ -138,7 +138,7 @@ bc_out_num (num, o_base, out_char, leading_zero)
/* The number is some other base. */
digits = NULL;
bc_init_num (&int_part);
- bc_divide (num, _one_, &int_part, 0);
+ bc_divide (num, BCG(_one_), &int_part, 0);
bc_init_num (&frac_part);
bc_init_num (&cur_dig);
bc_init_num (&base);
@@ -185,7 +185,7 @@ bc_out_num (num, o_base, out_char, leading_zero)
{
(*out_char) ('.');
pre_space = 0;
- t_num = bc_copy_num (_one_);
+ t_num = bc_copy_num (BCG(_one_));
while (t_num->n_len <= num->n_scale) {
bc_multiply (frac_part, base, &frac_part, num->n_scale);
fdigit = bc_num2long (frac_part);