Skip to content

Commit f0f3c7e

Browse files
Fix compile issues for NikonFl7 makernotes group
+ Fix fuzzing CI errors of `exp2` and `round` not being in `std` by adding `#include <cmath>` + Fix Windows CI warning C4305 by explicitly defining value as a float
1 parent 8cd7dba commit f0f3c7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nikonmn_int.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include <cassert>
3939
#include <cstring>
4040
#include <math.h> //for log, pow, abs
41+
#include <cmath>
4142

4243
// *****************************************************************************
4344
// class member definitions
@@ -2923,7 +2924,7 @@ fmountlens[] = {
29232924
std::ostringstream oss;
29242925
oss.copyfmt(os);
29252926
float temp = ( value.toFloat()/float(-6.0) );
2926-
temp *= 1.00001; // Avoid round-off errors
2927+
temp *= float(1.00001); // Avoid round-off errors
29272928

29282929
if (temp == 0)
29292930
os << 0;

0 commit comments

Comments
 (0)