mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Use an unsigned number for the refcount of bcmath objects
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user