Fix warnings and dependencies

This commit is contained in:
eelke 2025-02-23 16:52:39 +01:00
parent 86a9a0d709
commit ee86327869
14 changed files with 38 additions and 43 deletions

View file

@ -42,7 +42,7 @@ std::string HumanReadableBytes(uint64_t bytes)
};
std::ostringstream out;
for (int i = 0; i < (sizeof(scales) / sizeof(scale)); ++i)
for (unsigned int i = 0; i < (sizeof(scales) / sizeof(scale)); ++i)
{
if (bytes >= scales[i].scale)
{

View file

@ -44,10 +44,10 @@ void KeyStrengthener::saveParams(SQLiteConnection &db, const QString &table_name
+ "VALUES(?1, ?2, ?3, ?4, ?5, ?6, ?7)");
stmt.Bind(1, 1);
stmt.Bind(2, "Scrypt");
stmt.Bind(3, i1);
stmt.Bind(4, i2);
stmt.Bind(5, i3);
stmt.Bind(6, m_keySize);
stmt.Bind(3, (int)i1);
stmt.Bind(4, (int)i2);
stmt.Bind(5, (int)i3);
stmt.Bind(6, (int)m_keySize);
stmt.Bind(7, salt_str);
stmt.Step();
}