From 7aded2b7fb0dc1014310b658c0900181e5b3db3c Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 30 Apr 2024 13:46:59 +0200 Subject: [PATCH] Explicit cast due to compiler warning. --- library/src/configuration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/configuration.cpp b/library/src/configuration.cpp index 30f0b73..85e42ff 100644 --- a/library/src/configuration.cpp +++ b/library/src/configuration.cpp @@ -583,7 +583,7 @@ int Configuration::getPaymentOptionIndex(QDateTime const &dt) const { if (sd.ped_id != 0) { for (int opt=0; opt < numOptions; ++opt) { uint64_t const pop_id = getPaymentOptions(opt).pop_id; - if (pop_id == sd.ped_payment_option_id) { + if (pop_id == (uint64_t)sd.ped_payment_option_id) { return opt; } }