diff options
author | Sander Roobol <sander@php.net> | 2002-11-22 09:25:29 +0000 |
---|---|---|
committer | Sander Roobol <sander@php.net> | 2002-11-22 09:25:29 +0000 |
commit | f200f739d8089ac0156ea4064696d32fff45692c (patch) | |
tree | 5ba86c6a3ffcdd1229eb043df4515e345fe383dc /ext/bcmath/libbcmath/src/zero.c | |
parent | 64a75d6d7714e199814a67980abdd2672c69ba07 (diff) | |
download | php-git-f200f739d8089ac0156ea4064696d32fff45692c.tar.gz |
Made bcmath extension thread safe.
@Made bcmath extension thread safe. (Sander)
Diffstat (limited to 'ext/bcmath/libbcmath/src/zero.c')
-rw-r--r-- | ext/bcmath/libbcmath/src/zero.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/bcmath/libbcmath/src/zero.c b/ext/bcmath/libbcmath/src/zero.c index dce77ba4aa..4ee249ee71 100644 --- a/ext/bcmath/libbcmath/src/zero.c +++ b/ext/bcmath/libbcmath/src/zero.c @@ -41,14 +41,13 @@ /* In some places we need to check if the number NUM is zero. */ char -bc_is_zero (num) - bc_num num; +bc_is_zero (bc_num num TSRMLS_DC) { int count; char *nptr; /* Quick check. */ - if (num == _zero_) return TRUE; + if (num == BCG(_zero_)) return TRUE; /* Initialize */ count = num->n_len + num->n_scale; |