Skip to content

Commit d2d4596

Browse files
committed
Use an unsigned number for the refcount of bcmath objects
1 parent 5dc11de commit d2d4596

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/bcmath/libbcmath/src/bcmath.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ typedef enum {PLUS, MINUS} sign;
3939
typedef struct bc_struct *bc_num;
4040

4141
typedef struct bc_struct {
42-
size_t n_len; /* The number of digits before the decimal point. */
43-
size_t n_scale; /* The number of digits after the decimal point. */
44-
char *n_value; /* The number. Not zero char terminated. */
45-
int n_refs; /* The number of pointers to this number. */
46-
sign n_sign;
42+
size_t n_len; /* The number of digits before the decimal point. */
43+
size_t n_scale; /* The number of digits after the decimal point. */
44+
char *n_value; /* The number. Not zero char terminated. */
45+
unsigned int n_refs; /* The number of pointers to this number. */
46+
sign n_sign;
4747
} bc_struct;
4848

4949
#ifdef HAVE_CONFIG_H

0 commit comments

Comments
 (0)