Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false'

This commit is contained in:
ENikS
2014-09-06 15:59:59 -04:00
parent b8d92236f6
commit 8d657a6517
9 changed files with 23 additions and 23 deletions

View File

@@ -231,7 +231,7 @@ CDB::CDB(const char *pszFile, const char* pszMode) :
if (pszFile == NULL)
return;
bool fCreate = strchr(pszMode, 'c');
bool fCreate = strchr(pszMode, 'c') != NULL;
unsigned int nFlags = DB_THREAD;
if (fCreate)
nFlags |= DB_CREATE;