Skip to content

Commit

Permalink
update for GNUSTEP_WITH_ASAN
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Dec 4, 2024
1 parent 9cdb4f9 commit 7ac6931
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/GSArray.m
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,10 @@ - (id) initWithObjects: (const id[])objects count: (NSUInteger)count
* that produces false positives for items held in an inline array, so
* we use the less efficient class in that case.
*/
#if defined(GS_WITH_ASAN)
#if !defined(GNUSTEP_WITH_ASAN)
#define GNUSTEP_WITH_ASAN 0
#endif
#if GNUSTEP_WITH_ASAN
self = (id)NSAllocateObject(GSArrayClass, 0, z);
#else
self = (id)NSAllocateObject(GSInlineArrayClass, sizeof(id)*count, z);
Expand Down

0 comments on commit 7ac6931

Please sign in to comment.