summaryrefslogtreecommitdiff
path: root/core/fxcrt
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt')
-rw-r--r--core/fxcrt/fx_arabic.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fxcrt/fx_arabic.cpp b/core/fxcrt/fx_arabic.cpp
index 70e8e6a709..f197af5e13 100644
--- a/core/fxcrt/fx_arabic.cpp
+++ b/core/fxcrt/fx_arabic.cpp
@@ -399,8 +399,8 @@ class CFX_BidiLine {
int32_t iStart,
int32_t iCount) {
ASSERT(pdfium::IndexInBounds(*chars, iStart));
- ASSERT(pdfium::IndexInBounds(*chars, iCount));
- ASSERT(iStart + iCount <= pdfium::CollectionSize<int32_t>(*chars));
+ ASSERT(iCount >= 0 &&
+ iStart + iCount <= pdfium::CollectionSize<int32_t>(*chars));
std::reverse(chars->begin() + iStart, chars->begin() + iStart + iCount);
}
@@ -409,7 +409,7 @@ class CFX_BidiLine {
int32_t iStart,
int32_t iCount,
int32_t iValue) {
- ASSERT(pdfium::IndexInBounds(*chars, iStart));
+ ASSERT(iStart >= 0 && iStart <= pdfium::CollectionSize<int32_t>(*chars));
ASSERT(iStart - iCount > -1);
int32_t iLast = iStart - iCount;
if (bClass) {