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

- Avoid signed-unsigned comparison

This commit is contained in:
brodsom 2003-04-02 11:14:29 +00:00
parent 98402f979d
commit 20da14459f

View File

@ -114,14 +114,14 @@ DirectoryList::~DirectoryList() {
void DirectoryList::Initialize(void) { void DirectoryList::Initialize(void) {
const Firebird::string val = GetConfigString(); const Firebird::string val = GetConfigString();
nDirs = 1; nDirs = 1;
int i; unsigned int i;
for (i = 0; i < val.length(); i++) { for (i = 0; i < val.length(); i++) {
if (val[i] == ';') { if (val[i] == ';') {
nDirs++; nDirs++;
} }
} }
ConfigDirs = New ParsedPath[nDirs]; ConfigDirs = New ParsedPath[nDirs];
int Last = 0; unsigned int Last = 0;
nDirs = 0; nDirs = 0;
Firebird::string Root = Config::getRootDirectory(); Firebird::string Root = Config::getRootDirectory();
for (i = 0; i < val.length(); i++) { for (i = 0; i < val.length(); i++) {