[php-src] master: Use an unsigned number for the refcount of bcmath objects
| From: | Niels Dossche | Date: | Wed, 01 May 2024 14:18:47 +0000 |
| Subject: | [php-src] master: Use an unsigned number for the refcount of bcmath objects | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-128294@lists.php.net to get a copy of this message | ||
Author: Niels Dossche (nielsdos)
Date: 2024-05-01T16:18:37+02:00
Commit: https://github.com/php/php-src/commit/d2d4596f20ea99317cfdf94776a67940a997058f
Raw diff: https://github.com/php/php-src/commit/d2d4596f20ea99317cfdf94776a67940a997058f.diff
Use an unsigned number for the refcount of bcmath objects
Changed paths:
M ext/bcmath/libbcmath/src/bcmath.h
Diff:
diff --git a/ext/bcmath/libbcmath/src/bcmath.h b/ext/bcmath/libbcmath/src/bcmath.h
index 4b3f3510095a..9cd611a6fd5b 100644
--- a/ext/bcmath/libbcmath/src/bcmath.h
+++ b/ext/bcmath/libbcmath/src/bcmath.h
@@ -39,11 +39,11 @@ typedef enum {PLUS, MINUS} sign;
typedef struct bc_struct *bc_num;
typedef struct bc_struct {
- size_t n_len; /* The number of digits before the decimal point. */
- size_t n_scale; /* The number of digits after the decimal point. */
- char *n_value; /* The number. Not zero char terminated. */
- int n_refs; /* The number of pointers to this number. */
- sign n_sign;
+ size_t n_len; /* The number of digits before the decimal point. */
+ size_t n_scale; /* The number of digits after the decimal point. */
+ char *n_value; /* The number. Not zero char terminated. */
+ unsigned int n_refs; /* The number of pointers to this number. */
+ sign n_sign;
} bc_struct;
#ifdef HAVE_CONFIG_H