Try to address issue of treating pointer function values as bitmap.

This commit is contained in:
Fred Kiefer 2023-08-18 17:29:43 +02:00
parent c1833e1130
commit b0263ae4a8
4 changed files with 26 additions and 27 deletions

View file

@ -534,7 +534,7 @@ static Class concreteClass = Nil;
new_gf = new_cap / 2;
if (_contents == 0)
{
if (_pf.options & NSPointerFunctionsZeroingWeakMemory)
if (memoryType(_pf.options, NSPointerFunctionsZeroingWeakMemory))
{
ptr = (void**)NSAllocateCollectable(size, 0);
}
@ -545,7 +545,7 @@ static Class concreteClass = Nil;
}
else
{
if (_pf.options & NSPointerFunctionsZeroingWeakMemory)
if (memoryType(_pf.options, NSPointerFunctionsZeroingWeakMemory))
{
ptr = (void**)NSReallocateCollectable(
_contents, size, 0);