aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2004-12-03 23:14:04 +0000
committernyamatongwe <unknown>2004-12-03 23:14:04 +0000
commit639c57612568acae901f268f45b4ac1c3e8cbff2 (patch)
treeb00c6a12ff5733c205aa607c94521374b3511ac6 /src/Document.cxx
parent8ddd9226d19199363ed00801adf7f95b43fd32b6 (diff)
downloadscintilla-mirror-639c57612568acae901f268f45b4ac1c3e8cbff2.tar.gz
Patch from Regis Vaquette to allow compilation for Windows CE.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 76fa456cc..82f4c59bc 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -266,7 +266,7 @@ int Document::LenChar(int pos) {
return 1;
}
}
-#include <assert.h>
+
// Normalise a position so that it is not halfway through a two byte character.
// This can occur in two situations -
// When lines are terminated with \r\n pairs which should be treated as one character.
@@ -280,7 +280,7 @@ int Document::MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd) {
if (pos >= Length())
return Length();
- // assert pos > 0 && pos < Length()
+ // PLATFORM_ASSERT(pos > 0 && pos < Length());
if (checkLineEnd && IsCrLf(pos - 1)) {
if (moveDir > 0)
return pos + 1;