diff options
author | Andrea Faulds <ajf@ajf.me> | 2014-09-16 13:45:06 +0100 |
---|---|---|
committer | Andrea Faulds <ajf@ajf.me> | 2014-09-16 13:45:06 +0100 |
commit | db72160e5ac2b267b9ffa23ad84e62e609382a44 (patch) | |
tree | 6e50c2826f98308d500cc826934a503751d4d566 /Zend/zend_static_allocator.c | |
parent | be88d0e5d4ab5fdf775f3e38cf054aa0451f0d36 (diff) | |
parent | f469dc7429f2257aac6f46228302408608fbd62f (diff) | |
download | php-git-db72160e5ac2b267b9ffa23ad84e62e609382a44.tar.gz |
Merge branch 'master' into integer_semantics
Conflicts:
Zend/zend_operators.h
Diffstat (limited to 'Zend/zend_static_allocator.c')
-rw-r--r-- | Zend/zend_static_allocator.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Zend/zend_static_allocator.c b/Zend/zend_static_allocator.c index 71338d211e..049d29f6a2 100644 --- a/Zend/zend_static_allocator.c +++ b/Zend/zend_static_allocator.c @@ -22,13 +22,13 @@ /* Not checking emalloc() and erealloc() return values as they are supposed to bailout */ -inline static void block_init(Block *block, zend_uint block_size) +inline static void block_init(Block *block, uint32_t block_size) { block->pos = block->bp = (char *) emalloc(block_size); block->end = block->bp + block_size; } -inline static char *block_allocate(Block *block, zend_uint size) +inline static char *block_allocate(Block *block, uint32_t size) { char *retval = block->pos; if ((block->pos += size) >= block->end) { @@ -50,7 +50,7 @@ void static_allocator_init(StaticAllocator *sa) sa->current_block = 0; } -char *static_allocator_allocate(StaticAllocator *sa, zend_uint size) +char *static_allocator_allocate(StaticAllocator *sa, uint32_t size) { char *retval; @@ -67,7 +67,7 @@ char *static_allocator_allocate(StaticAllocator *sa, zend_uint size) void static_allocator_destroy(StaticAllocator *sa) { - zend_uint i; + uint32_t i; for (i=0; i<sa->num_blocks; i++) { block_free(&sa->Blocks[i]); |