[qfcc] Allow 0 sized highwater allocations in defspaces

This turned out to be needed for functions with no parameters (or no
locals).
This commit is contained in:
Bill Currie 2022-01-21 10:16:54 +09:00
parent 479ec07fd4
commit a19349b242

View file

@ -277,7 +277,7 @@ defspace_alloc_highwater (defspace_t *space, int size)
int
defspace_alloc_aligned_highwater (defspace_t *space, int size, int alignment)
{
if (size <= 0)
if (size < 0)
internal_error (0, "invalid number of words requested: %d", size);
if (alignment <= 0)
internal_error (0, "invalid alignment requested: %d", alignment);