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

Commit

Permalink
Supplemental change of issue 4523
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Jan 2, 2012
1 parent 21ea29e commit 45ccf64
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/rt/aaA.d
Expand Up @@ -388,12 +388,12 @@ body
* If key is not in aa[], do nothing.
*/

void _aaDel(AA aa, TypeInfo keyti, ...)
bool _aaDel(AA aa, TypeInfo keyti, ...)
{
return _aaDelX(aa, keyti, cast(void*)(&keyti + 1));
}

void _aaDelX(AA aa, TypeInfo keyti, void* pkey)
bool _aaDelX(AA aa, TypeInfo keyti, void* pkey)
{
aaA *e;

Expand All @@ -413,12 +413,13 @@ void _aaDelX(AA aa, TypeInfo keyti, void* pkey)
*pe = e.next;
aa.a.nodes--;
gc_free(e);
break;
return true;
}
}
pe = &e.next;
}
}
return false;
}


Expand Down

0 comments on commit 45ccf64

Please sign in to comment.