We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1aab1f3 + 2e2fef0 commit 6c47c00Copy full SHA for 6c47c00
modules/wechat_qrcode/src/zxing/zxing.hpp
@@ -55,8 +55,8 @@ typedef unsigned char boolean;
55
#include <cmath>
56
57
namespace zxing {
58
-inline bool isnan(float v) { return (bool)cvIsNaN(v); }
59
-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; }
60
inline float nan() { return std::numeric_limits<float>::quiet_NaN(); }
61
} // namespace zxing
62
0 commit comments