fixed incorrect assert
This commit is contained in:
parent
01f1d01d58
commit
9c8f5327b5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue