diff options
Diffstat (limited to 'lexlib')
| -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);  	}  | 
