-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treat zero requested size in GC_malloc_many same as that in GC_malloc
If the size argument is zero, then it is treated as one. * include/gc/gc.h (GC_malloc_many): Move comment from mallocx.c; document the case of zero value of the argument. * mallocx.c (GC_malloc_many): If lb is zero, then set it to 1 (before computing lg).
- Loading branch information
Showing
2 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters