Skip to content

Commit 8d8c249

Browse files
committed
changes from feedback.
1 parent 89ddd96 commit 8d8c249

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Zend/zend_strtod.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3610,18 +3610,18 @@ zend_strtod
36103610
#ifdef KR_headers
36113611
rv_alloc(i) int i;
36123612
#else
3613-
rv_alloc(int i)
3613+
rv_alloc(size_t i)
36143614
#endif
36153615
{
3616-
int k, *r;
3616+
int *r;
36173617

3618-
size_t j = sizeof(ULong);
3618+
size_t k, j = sizeof(ULong);
36193619
for(k = 0;
3620-
sizeof(Bigint) - sizeof(ULong) - sizeof(int) + j <= (size_t)i;
3620+
sizeof(Bigint) - sizeof(ULong) - sizeof(int) + j <= i;
36213621
j <<= 1)
36223622
k++;
36233623
r = (int*)Balloc(k);
3624-
*r = k;
3624+
*r = (int)k;
36253625
return
36263626
#ifndef MULTIPLE_THREADS
36273627
dtoa_result =
@@ -3633,7 +3633,7 @@ rv_alloc(int i)
36333633
#ifdef KR_headers
36343634
nrv_alloc(s, rve, n) char *s, **rve; int n;
36353635
#else
3636-
nrv_alloc(const char *s, char **rve, int n)
3636+
nrv_alloc(const char *s, char **rve, size_t n)
36373637
#endif
36383638
{
36393639
char *rv, *t;

0 commit comments

Comments
 (0)