aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/PropSetSimple.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-06-25 11:29:37 +1000
committernyamatongwe <unknown>2011-06-25 11:29:37 +1000
commitbd9c56e568d9a725896ff644214b84b095d5e0ef (patch)
treea817dd1723d9e6f27bdf746b787b84956856a8d0 /lexlib/PropSetSimple.cxx
parentf3ba280682cb414a0b9c37a6c3e6e1c11925a90f (diff)
downloadscintilla-mirror-bd9c56e568d9a725896ff644214b84b095d5e0ef.tar.gz
Add casts to avoid warnings from SDK 64-bit compiler.
Diffstat (limited to 'lexlib/PropSetSimple.cxx')
-rw-r--r--lexlib/PropSetSimple.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/lexlib/PropSetSimple.cxx b/lexlib/PropSetSimple.cxx
index 6942f6e71..ce2031f8d 100644
--- a/lexlib/PropSetSimple.cxx
+++ b/lexlib/PropSetSimple.cxx
@@ -61,9 +61,10 @@ void PropSetSimple::Set(const char *keyVal) {
endVal++;
const char *eqAt = strchr(keyVal, '=');
if (eqAt) {
- Set(keyVal, eqAt + 1, eqAt-keyVal, endVal - eqAt - 1);
+ Set(keyVal, eqAt + 1, static_cast<int>(eqAt-keyVal),
+ static_cast<int>(endVal - eqAt - 1));
} else if (*keyVal) { // No '=' so assume '=1'
- Set(keyVal, "1", endVal-keyVal, 1);
+ Set(keyVal, "1", static_cast<int>(endVal-keyVal), 1);
}
}
@@ -150,7 +151,7 @@ char *PropSetSimple::Expanded(const char *key) const {
int PropSetSimple::GetExpanded(const char *key, char *result) const {
char *val = Expanded(key);
- const int n = strlen(val);
+ const int n = static_cast<int>(strlen(val));
if (result) {
strcpy(result, val);
}