diff options
author | nyamatongwe <unknown> | 2011-06-25 11:29:37 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-06-25 11:29:37 +1000 |
commit | bd9c56e568d9a725896ff644214b84b095d5e0ef (patch) | |
tree | a817dd1723d9e6f27bdf746b787b84956856a8d0 /lexlib/PropSetSimple.cxx | |
parent | f3ba280682cb414a0b9c37a6c3e6e1c11925a90f (diff) | |
download | scintilla-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.cxx | 7 |
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); } |