Skip to content

Commit 1758625

Browse files
committed
Array iterator verify ignores end
1 parent ec08e4b commit 1758625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/PipeArrays.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ namespace p
199199
{
200200
#if P_DEBUG
201201
P_CheckMsg(ptr, "Iterator is null");
202-
P_CheckMsg(range->Data() <= ptr && ptr < (range->Data() + range->Size()),
202+
P_CheckMsg(range->Data() <= ptr && ptr <= (range->Data() + range->Size()),
203203
"Iterator is out of range");
204204
#endif
205205
}

0 commit comments

Comments
 (0)