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/str2num.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/str2num.c')
-rw-r--r-- | ext/bcmath/libbcmath/src/str2num.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/bcmath/libbcmath/src/str2num.c b/ext/bcmath/libbcmath/src/str2num.c index 210a7d89ea..c484c158e5 100644 --- a/ext/bcmath/libbcmath/src/str2num.c +++ b/ext/bcmath/libbcmath/src/str2num.c @@ -41,10 +41,7 @@ /* Convert strings to bc numbers. Base 10 only.*/ void -bc_str2num (num, str, scale) - bc_num *num; - char *str; - int scale; +bc_str2num (bc_num *num, char *str, int scale TSRMLS_DC) { int digits, strscale; char *ptr, *nptr; @@ -65,7 +62,7 @@ bc_str2num (num, str, scale) while (isdigit((int)*ptr)) ptr++, strscale++; /* digits */ if ((*ptr != '\0') || (digits+strscale == 0)) { - *num = bc_copy_num (_zero_); + *num = bc_copy_num (BCG(_zero_)); return; } |