Skip to content

Commit

Permalink
Merge pull request #3791 from asmorkalov:as/zxing_warning
Browse files Browse the repository at this point in the history
Build warning fix on Windows.
  • Loading branch information
asmorkalov authored Sep 9, 2024
2 parents 1aab1f3 + 2e2fef0 commit 6c47c00
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 6c47c00

Please sign in to comment.