fixed incorrect assert

This commit is contained in:
Arvid Norberg 2006-11-19 15:23:41 +00:00
parent 01f1d01d58
commit 9c8f5327b5
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public:
return begin[index];
}
int left() const { assert(end > begin); return end - begin; }
int left() const { assert(end >= begin); return end - begin; }
char* begin;
char* end;
@ -74,7 +74,7 @@ public:
return begin[index];
}
int left() const { assert(end > begin); return end - begin; }
int left() const { assert(end >= begin); return end - begin; }
char const* begin;
char const* end;