Showing with 2 additions and 2 deletions.
  1. +2 −2 src/rt/aaA.d
4 changes: 2 additions & 2 deletions src/rt/aaA.d
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ inout(ArrayRet_t) _aaKeys(inout AA aa, in size_t keysize, const TypeInfo tiKeyAr
if (!len)
return null;

void[] res = _d_newarrayU(tiKeyArray, len);
void* res = _d_newarrayU(tiKeyArray, len).ptr;

size_t resi = 0;
// note, can't use firstUsedBucketCache here, aa is inout
Expand All @@ -498,7 +498,7 @@ inout(ArrayRet_t) _aaKeys(inout AA aa, in size_t keysize, const TypeInfo tiKeyAr

Array a;
a.length = len;
a.ptr = res.ptr;
a.ptr = res;
return *cast(inout ArrayRet_t*)(&a);
}

Expand Down