8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 06:03:02 +01:00

Reduce number of warnings for 64-bit targets.

This commit is contained in:
dimitr 2008-05-12 04:47:52 +00:00
parent 9bb9fce985
commit b5d8f4a42b

View File

@ -91,7 +91,7 @@ void ConfigRoot::osConfigRoot()
if (bin_dir.length() != 0)
{
// get rid of the filename
int index = bin_dir.rfind(PathUtils::dir_sep);
const size_t index = bin_dir.rfind(PathUtils::dir_sep);
install_dir() = bin_dir.substr(0, index);
}
}
@ -106,7 +106,7 @@ void ConfigRoot::osConfigRoot()
#endif
// go to the parent directory
int index = install_dir().rfind(PathUtils::dir_sep, install_dir().length());
const size_t index = install_dir().rfind(PathUtils::dir_sep, install_dir().length());
root_dir = (index ? install_dir().substr(0, index) : install_dir()) + PathUtils::dir_sep;
return;
}