From f200f739d8089ac0156ea4064696d32fff45692c Mon Sep 17 00:00:00 2001 From: Sander Roobol Date: Fri, 22 Nov 2002 09:25:29 +0000 Subject: Made bcmath extension thread safe. @Made bcmath extension thread safe. (Sander) --- ext/bcmath/libbcmath/src/str2num.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'ext/bcmath/libbcmath/src/str2num.c') 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; } -- cgit v1.2.1