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

Commit

Permalink
npools must be > 0 when minAddr != maxAddr
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Jan 18, 2015
1 parent 6e8615c commit 44cbfaa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gc/gc.d
Original file line number Diff line number Diff line change
Expand Up @@ -2888,10 +2888,10 @@ nothrow:
{
if (p >= minAddr && p < maxAddr)
{
if (npools <= 1)
{
return npools == 0 ? null : pools[0];
}
assert(npools);

if (npools == 1)
return pools[0];

/* The pooltable[] is sorted by address, so do a binary search
*/
Expand Down

0 comments on commit 44cbfaa

Please sign in to comment.