From e813f0383be5b92df787ea42be7c8cb1254fe63a Mon Sep 17 00:00:00 2001 From: Don HO Date: Sat, 19 Jan 2019 03:27:08 +0100 Subject: [PATCH] Fix x64 build error --- PowerEditor/src/Notepad_plus.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 801bb525..ce96a166 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -978,7 +978,7 @@ int Notepad_plus::getHtmlXmlEncoding(const TCHAR *fileName) const _invisibleEditView.execute(SCI_APPENDTEXT, lenFile, reinterpret_cast(data)); const char *encodingAliasRegExpr = "[a-zA-Z0-9_-]+"; - const int encodingStrLen = 128; + const size_t encodingStrLen = 128; if (langT == L_XML) { // find encoding by RegExpr @@ -1005,7 +1005,7 @@ int Notepad_plus::getHtmlXmlEncoding(const TCHAR *fileName) const startPos = int(_invisibleEditView.execute(SCI_GETTARGETSTART)); endPos = _invisibleEditView.execute(SCI_GETTARGETEND); - int len = endPos - startPos; + size_t len = endPos - startPos; if (len >= encodingStrLen) { return -1; @@ -1049,7 +1049,7 @@ int Notepad_plus::getHtmlXmlEncoding(const TCHAR *fileName) const startPos = int(_invisibleEditView.execute(SCI_GETTARGETSTART)); endPos = _invisibleEditView.execute(SCI_GETTARGETEND); - int len = endPos - startPos; + size_t len = endPos - startPos; if (len >= encodingStrLen) { return -1;