Skip to content

Commit

Permalink
Build warning fix on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
asmorkalov committed Sep 9, 2024
1 parent 1aab1f3 commit 2e2fef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/wechat_qrcode/src/zxing/zxing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ typedef unsigned char boolean;
#include <cmath>

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<float>::quiet_NaN(); }
} // namespace zxing

Expand Down

0 comments on commit 2e2fef0

Please sign in to comment.