aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-05-03 09:27:20 +0000
committernyamatongwe <devnull@localhost>2009-05-03 09:27:20 +0000
commit1fd0469d3b3056b95a1116431c87c09063b9e8f2 (patch)
treecb1c262a006d5aa4f9446b3530a046d369b51221
parent7f12d35ec024bca1dea42067678dfd8ead0d1b67 (diff)
downloadscintilla-mirror-1fd0469d3b3056b95a1116431c87c09063b9e8f2.tar.gz
Fixed signed/unsigned issue.
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 0ec0b9160..28a0ce60e 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -504,7 +504,7 @@ int Editor::PositionFromLocation(Point pt, bool canReturnInvalid, bool charPosit
if (lineDoc >= pdoc->LinesTotal())
return canReturnInvalid ? INVALID_POSITION : pdoc->Length();
unsigned int posLineStart = pdoc->LineStart(lineDoc);
- int retVal = canReturnInvalid ? INVALID_POSITION : posLineStart;
+ int retVal = canReturnInvalid ? INVALID_POSITION : static_cast<int>(posLineStart);
AutoSurface surface(this);
AutoLineLayout ll(llc, RetrieveLineLayout(lineDoc));
if (surface && ll) {