Fix or cast integer conversions in cmake

These were revealed by GCC's -Wconversion option.  Fix types where it is
easy to do so.  Cast in cases we know the integer will not be truncated.
This commit is contained in:
Brad King
2010-06-25 08:48:59 -04:00
parent da0190a4a7
commit 6fc4cd8680
6 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -739,7 +739,7 @@ bool cmStringCommand
alphabet = cmStringCommandDefaultAlphabet;
}
double sizeofAlphabet = alphabet.size();
double sizeofAlphabet = static_cast<double>(alphabet.size());
if ( sizeofAlphabet < 1 )
{
this->SetError("sub-command RANDOM invoked with bad alphabet.");