diff options
Diffstat (limited to 'contrib/lua-lpeg')
-rw-r--r-- | contrib/lua-lpeg/lpvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/lua-lpeg/lpvm.c b/contrib/lua-lpeg/lpvm.c index 3e67fcaf0..7ee8b695a 100644 --- a/contrib/lua-lpeg/lpvm.c +++ b/contrib/lua-lpeg/lpvm.c @@ -73,7 +73,7 @@ lpeg_allocate_mem_low (size_t sz) cp = mmap (base_addr, sz + sizeof (sz), PROT_WRITE | PROT_READ, flags, -1, 0); - assert (cp != NULL); + assert (cp != MAP_FAILED); memcpy (cp, &sz, sizeof (sz)); for (unsigned i = 0; i < MAX_PIECES; i ++) { |