From 29feaba22fa9da5d1e8743a09ca23d2533419055 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 22 Aug 2013 21:51:15 -0700 Subject: [PATCH] Fix KeyvaDB warnings --- modules/beast_db/keyvalue/beast_KeyvaDB.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/beast_db/keyvalue/beast_KeyvaDB.cpp b/modules/beast_db/keyvalue/beast_KeyvaDB.cpp index 15e54fee2..3ef2e1b82 100644 --- a/modules/beast_db/keyvalue/beast_KeyvaDB.cpp +++ b/modules/beast_db/keyvalue/beast_KeyvaDB.cpp @@ -279,8 +279,8 @@ public: } } - state->newKeyIndex = 1 + (state->keyFile.getFile ().getSize () - masterHeaderBytes) - / calcKeyRecordBytes (m_keyBytes); + state->newKeyIndex = 1 + static_cast ((state->keyFile.getFile ().getSize () - masterHeaderBytes) + / calcKeyRecordBytes (m_keyBytes)); openFile (&state->valFile, valPath); @@ -360,7 +360,7 @@ public: if (result.wasOk ()) { - if (bytesRead == calcKeyRecordBytes (m_keyBytes)) + if (bytesRead == static_cast (calcKeyRecordBytes (m_keyBytes))) { MemoryInputStream stream (data, false); @@ -425,7 +425,7 @@ public: if (result.wasOk ()) { - if (bytesWritten != bytes) + if (bytesWritten != static_cast (bytes)) { result = Result::fail ("KeyvaDB: bytesWritten != bytes"); }