From d2d4596f20ea99317cfdf94776a67940a997058f Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Wed, 1 May 2024 13:59:59 +0200 Subject: [PATCH] Use an unsigned number for the refcount of bcmath objects --- ext/bcmath/libbcmath/src/bcmath.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/bcmath/libbcmath/src/bcmath.h b/ext/bcmath/libbcmath/src/bcmath.h index 4b3f3510095..9cd611a6fd5 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