diff options
author | nyamatongwe <devnull@localhost> | 2011-06-25 11:29:37 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-06-25 11:29:37 +1000 |
commit | 00fe734664e797fc5df56f00a77d071c314c5b9c (patch) | |
tree | 4151249b020594defbfdb157a777bc7a43bad3c4 /lexlib/PropSetSimple.cxx | |
parent | 509cc0afef07cd8912e18151a08190b58763360b (diff) | |
download | scintilla-mirror-00fe734664e797fc5df56f00a77d071c314c5b9c.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); } |