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

Fix cast warnings

This commit is contained in:
brodsom 2003-08-09 19:20:02 +00:00
parent a3cc9de67b
commit 408f1feb79

View File

@ -293,10 +293,10 @@ TempDirectoryList::TempDirectoryList() : items(0)
// Iterate through directories to parse them
// and fill the "items" vector
for (int i = 0; i < DirCount(); i++) {
for (size_t i = 0; i < DirCount(); i++) {
Item item;
Firebird::PathName dir = dir_list[i];
int pos = dir.rfind(" ");
size_t pos = dir.rfind(" ");
long size = atol(dir.substr(pos + 1, Firebird::PathName::npos).c_str());
if (pos != Firebird::PathName::npos && !size) {
pos = Firebird::PathName::npos;