Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1131 from rainers/aaKeys_rangeError
Browse files Browse the repository at this point in the history
fix RangeError in _aaKeys
  • Loading branch information
MartinNowak committed Jan 26, 2015
2 parents feca522 + 44c6aa4 commit 3d0b84f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rt/aaA.d
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

0 comments on commit 3d0b84f

Please sign in to comment.