From 1fd0469d3b3056b95a1116431c87c09063b9e8f2 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 3 May 2009 09:27:20 +0000 Subject: Fixed signed/unsigned issue. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(posLineStart); AutoSurface surface(this); AutoLineLayout ll(llc, RetrieveLineLayout(lineDoc)); if (surface && ll) { -- cgit v1.2.3