From 2e2fef09e3bdfc9e0d9895309505d2113f9b9b64 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Mon, 9 Sep 2024 16:49:29 +0300 Subject: [PATCH] Build warning fix on Windows. --- modules/wechat_qrcode/src/zxing/zxing.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/wechat_qrcode/src/zxing/zxing.hpp b/modules/wechat_qrcode/src/zxing/zxing.hpp index d735c830f2..e61f36e872 100644 --- a/modules/wechat_qrcode/src/zxing/zxing.hpp +++ b/modules/wechat_qrcode/src/zxing/zxing.hpp @@ -55,8 +55,8 @@ typedef unsigned char boolean; #include namespace zxing { -inline bool isnan(float v) { return (bool)cvIsNaN(v); } -inline bool isnan(double v) { return (bool)cvIsNaN(v); } +inline bool isnan(float v) { return cvIsNaN(v) != 0; } +inline bool isnan(double v) { return cvIsNaN(v) != 0; } inline float nan() { return std::numeric_limits::quiet_NaN(); } } // namespace zxing