diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-07-03 13:06:50 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-07-03 13:06:50 -0500 |
commit | 8c2f25b1be8766a42e2af6baa3f19e83fb74005c (patch) | |
tree | 9a9a583b1a7adcedc94a848721d0f4373a3cd984 /malloc.c | |
parent | ce6d40e02d52b9152b44a5fc2180efda15a7d069 (diff) | |
download | perl-8c2f25b1be8766a42e2af6baa3f19e83fb74005c.tar.gz |
fix compile warnings in malloc.c [perl #75340]
Diffstat (limited to 'malloc.c')
-rw-r--r-- | malloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -455,7 +455,7 @@ struct aligner { char c; void *p; }; -# define ALIGN_SMALL ((int)((caddr_t)&(((struct aligner*)0)->p))) +# define ALIGN_SMALL ((IV)((caddr_t)&(((struct aligner*)0)->p))) #else # define ALIGN_SMALL MEM_ALIGNBYTES #endif @@ -1506,7 +1506,7 @@ getpages(MEM_SIZE needed, int *nblksp, int bucket) require = FIRST_SBRK; else if (require < (MEM_SIZE)MIN_SBRK) require = MIN_SBRK; - if (require < goodsbrk * MIN_SBRK_FRAC1000 / 1000) + if (require < (Size_t)(goodsbrk * MIN_SBRK_FRAC1000 / 1000)) require = goodsbrk * MIN_SBRK_FRAC1000 / 1000; require = ((require - 1 + MIN_SBRK) / MIN_SBRK) * MIN_SBRK; } else { |