mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 06:10:56 +00:00
[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:
parent
479ec07fd4
commit
a19349b242
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue