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.
1 parent 1aab1f3 commit 2e2fef0Copy full SHA for 2e2fef0
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