Skip to content

Commit f0aa9a0

Browse files
committed
bcmath fixing wrong warning due to likely old fashion C
1 parent 1889d15 commit f0aa9a0

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

ext/bcmath/libbcmath/src/add.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@
4343
is the minimum scale for the result. */
4444

4545
void
46-
bc_add (n1, n2, result, scale_min)
47-
bc_num n1, n2, *result;
48-
int scale_min;
46+
bc_add (bc_num n1, bc_num n2, bc_num *result, int scale_min)
4947
{
5048
bc_num sum = NULL;
5149
int cmp_res;

ext/bcmath/libbcmath/src/init.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
/* new_num allocates a number and sets fields to known values. */
4141

4242
bc_num
43-
_bc_new_num_ex (length, scale, persistent)
44-
int length, scale, persistent;
43+
_bc_new_num_ex (int length, int scale, int persistent)
4544
{
4645
bc_num temp;
4746
/* PHP Change: malloc() -> pemalloc(), removed free_list code */
@@ -62,9 +61,7 @@ _bc_new_num_ex (length, scale, persistent)
6261
frees the storage if reference count is zero. */
6362

6463
void
65-
_bc_free_num_ex (num, persistent)
66-
bc_num *num;
67-
int persistent;
64+
_bc_free_num_ex (bc_num *num, int persistent)
6865
{
6966
if (*num == NULL) return;
7067
(*num)->n_refs--;

0 commit comments

Comments
 (0)