Skip to content

Commit 6c47c00

Browse files
authored
Merge pull request #3791 from asmorkalov:as/zxing_warning
Build warning fix on Windows.
2 parents 1aab1f3 + 2e2fef0 commit 6c47c00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/wechat_qrcode/src/zxing/zxing.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ typedef unsigned char boolean;
5555
#include <cmath>
5656

5757
namespace zxing {
58-
inline bool isnan(float v) { return (bool)cvIsNaN(v); }
59-
inline bool isnan(double v) { return (bool)cvIsNaN(v); }
58+
inline bool isnan(float v) { return cvIsNaN(v) != 0; }
59+
inline bool isnan(double v) { return cvIsNaN(v) != 0; }
6060
inline float nan() { return std::numeric_limits<float>::quiet_NaN(); }
6161
} // namespace zxing
6262

0 commit comments

Comments
 (0)