mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false'
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user