diff options
-rw-r--r-- | orc/orccodemem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/orc/orccodemem.c b/orc/orccodemem.c index ec433fe..dc8e0ab 100644 --- a/orc/orccodemem.c +++ b/orc/orccodemem.c @@ -187,7 +187,7 @@ orc_code_allocate_codemem (OrcCode *code, int size) OrcCodeRegion *region; OrcCodeChunk *chunk; int aligned_size = - (size + _orc_codemem_alignment) & (~_orc_codemem_alignment); + (MAX(1, size) + _orc_codemem_alignment) & (~_orc_codemem_alignment); orc_global_mutex_lock (); chunk = orc_code_region_get_free_chunk (aligned_size); |