Browse Source

[Fix] Segmentation fault in contrib/lua-lpeg/lpvm.c on ppc64el

This disables a workaround only intended for aarch64 if the target
architecture is powerpc.

Issue: #3365
tags/2.6
Spühler Stefan 4 years ago
parent
commit
c8f69801ec
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      contrib/lua-lpeg/lptypes.h

+ 1
- 1
contrib/lua-lpeg/lptypes.h View File

#define testchar(st,c) (((int)(st)[((c) >> 3)] & (1 << ((c) & 7)))) #define testchar(st,c) (((int)(st)[((c) >> 3)] & (1 << ((c) & 7))))


/* Special workaround for luajit */ /* Special workaround for luajit */
#if defined(WITH_LUAJIT) && !(defined(_X86_) || defined(__x86_64__) || defined(__i386__))
#if defined(WITH_LUAJIT) && !(defined(_X86_) || defined(__x86_64__) || defined(__i386__) || defined(__powerpc__))
# define LPEG_LUD_WORKAROUND 1 # define LPEG_LUD_WORKAROUND 1
void * lpeg_allocate_mem_low(size_t sz); void * lpeg_allocate_mem_low(size_t sz);
void lpeg_free_mem_low(void *p); void lpeg_free_mem_low(void *p);

Loading…
Cancel
Save