From fe486acfe6c8428b659ed489730290514b2e02e7 Mon Sep 17 00:00:00 2001 From: Victor Tran Date: Sun, 13 Oct 2019 06:29:57 +1100 Subject: [PATCH] Fix ambiguous types on some systems --- mousepass/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mousepass/main.cpp b/mousepass/main.cpp index 8270f12..e4ae63a 100644 --- a/mousepass/main.cpp +++ b/mousepass/main.cpp @@ -52,7 +52,7 @@ bool setMousePassword(QString mousePassword, QString passwordFile) { const char* saltCharacters = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; for (int i = 0; i < 8; i++) { - salt.append(saltCharacters[QRandomGenerator::securelySeeded().bounded(0, strlen(saltCharacters))]); + salt.append(saltCharacters[QRandomGenerator::securelySeeded().bounded(quint32(0), static_cast(strlen(saltCharacters)))]); } QString hashedPassword = QString::fromLocal8Bit(crypt(mousePassword.toLocal8Bit().data(), salt.data()));