From 3b5ed304527a489943e6b96d86ba46e9f71a2be6 Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 16 Sep 2020 12:53:11 +0000 Subject: [PATCH] Fixed some warnings git-svn-id: svn://ultimatepp.org/upp/trunk@15050 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CodeEditor/PythonSyntax.cpp | 2 +- uppsrc/Esc/Esc.h | 2 +- uppsrc/TextDiffCtrl/TextDiff.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/uppsrc/CodeEditor/PythonSyntax.cpp b/uppsrc/CodeEditor/PythonSyntax.cpp index 5c998b8e7..053866820 100644 --- a/uppsrc/CodeEditor/PythonSyntax.cpp +++ b/uppsrc/CodeEditor/PythonSyntax.cpp @@ -9,7 +9,7 @@ void PythonSyntax::Highlight(const wchar *s, const wchar *end, HighlightOutput& int c = *s; dword pair = MAKELONG(s[0], s[1]); if(c == '#') { - hls.Put(end - s, hl_style[INK_COMMENT]); + hls.Put(int(end - s), hl_style[INK_COMMENT]); return; } else diff --git a/uppsrc/Esc/Esc.h b/uppsrc/Esc/Esc.h index 292b7ac8c..52145f96b 100644 --- a/uppsrc/Esc/Esc.h +++ b/uppsrc/Esc/Esc.h @@ -22,7 +22,7 @@ class EscValue : Moveable { }; int type; - mutable unsigned hash; + mutable hash_t hash; struct EscMap; struct EscArray; diff --git a/uppsrc/TextDiffCtrl/TextDiff.cpp b/uppsrc/TextDiffCtrl/TextDiff.cpp index 54daf6547..695362e56 100644 --- a/uppsrc/TextDiffCtrl/TextDiff.cpp +++ b/uppsrc/TextDiffCtrl/TextDiff.cpp @@ -79,7 +79,7 @@ static void CalcHash(Vector>& hash, const Vector& file, int { // 1st row Index& first = hash.Add(); for(int i = 0; i < file.GetCount(); i++) - first.Add(GetHashValue(file[i])); + first.Add(FoldHash(GetHashValue(file[i]))); } static const int prime[] = {