aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2002-06-09 02:58:47 +0000
committernyamatongwe <unknown>2002-06-09 02:58:47 +0000
commit28e0c4bd3005f79d2cd6b260831d655c26f7a478 (patch)
tree7b0416e002a76253ad5b11abe3194edc06bd4061 /src
parent1511b05408236df30b05670faffdef2730e3caa1 (diff)
downloadscintilla-mirror-28e0c4bd3005f79d2cd6b260831d655c26f7a478.tar.gz
Compatibility with 64 bit systems.
Diffstat (limited to 'src')
-rw-r--r--src/CallTip.cxx2
-rw-r--r--src/PropSet.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx
index 4b4ae0c7c..d67173b08 100644
--- a/src/CallTip.cxx
+++ b/src/CallTip.cxx
@@ -148,7 +148,7 @@ PRectangle CallTip::CallTipStart(int pos, Point pt, const char *defn,
look = newline + 1;
numLines++;
}
- int lastWidth = surfaceMeasure->WidthText(font, look, strlen(look));
+ int lastWidth = surfaceMeasure->WidthText(font, look, static_cast<int>(strlen(look)));
width = Platform::Maximum(width, lastWidth) + 10;
int lineHeight = surfaceMeasure->Height(font);
// Extra line for border and an empty line at top and bottom
diff --git a/src/PropSet.cxx b/src/PropSet.cxx
index fe80c1210..296799691 100644
--- a/src/PropSet.cxx
+++ b/src/PropSet.cxx
@@ -228,7 +228,7 @@ static bool IsSuffixCaseInsensitive(const char *target, const char *suffix) {
size_t lensuffix = strlen(suffix);
if (lensuffix > lentarget)
return false;
- for (int i = lensuffix - 1; i >= 0; i--) {
+ for (int i = static_cast<int>(lensuffix) - 1; i >= 0; i--) {
if (MakeUpperCase(target[i + lentarget - lensuffix]) !=
MakeUpperCase(suffix[i]))
return false;