summaryrefslogtreecommitdiff
path: root/src/sljit/sljitExecAllocator.c
diff options
context:
space:
mode:
authorzherczeg <zherczeg@6239d852-aaf2-0410-a92c-79f79f948069>2016-02-29 09:09:40 +0000
committerzherczeg <zherczeg@6239d852-aaf2-0410-a92c-79f79f948069>2016-02-29 09:09:40 +0000
commit14a092bd652747d0fd81f0a8ccfa5decd86c44fb (patch)
treee946185ecc53f67ecc93784068fa2891d2c16a11 /src/sljit/sljitExecAllocator.c
parentf6cb85bcdb508b0aaf8bc6d99b1d23afd7f3a6a9 (diff)
downloadpcre2-14a092bd652747d0fd81f0a8ccfa5decd86c44fb.tar.gz
JIT compiler update.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@501 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/sljit/sljitExecAllocator.c')
-rw-r--r--src/sljit/sljitExecAllocator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sljit/sljitExecAllocator.c b/src/sljit/sljitExecAllocator.c
index f24ed33..54f05f5 100644
--- a/src/sljit/sljitExecAllocator.c
+++ b/src/sljit/sljitExecAllocator.c
@@ -137,10 +137,10 @@ struct free_block {
};
#define AS_BLOCK_HEADER(base, offset) \
- ((struct block_header*)(((sljit_ub*)base) + offset))
+ ((struct block_header*)(((sljit_u8*)base) + offset))
#define AS_FREE_BLOCK(base, offset) \
- ((struct free_block*)(((sljit_ub*)base) + offset))
-#define MEM_START(base) ((void*)(((sljit_ub*)base) + sizeof(struct block_header)))
+ ((struct free_block*)(((sljit_u8*)base) + offset))
+#define MEM_START(base) ((void*)(((sljit_u8*)base) + sizeof(struct block_header)))
#define ALIGN_SIZE(size) (((size) + sizeof(struct block_header) + 7) & ~7)
static struct free_block* free_blocks;
@@ -153,7 +153,7 @@ static SLJIT_INLINE void sljit_insert_free_block(struct free_block *free_block,
free_block->size = size;
free_block->next = free_blocks;
- free_block->prev = 0;
+ free_block->prev = NULL;
if (free_blocks)
free_blocks->prev = free_block;
free_blocks = free_block;