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 814357a commit f740fcdCopy full SHA for f740fcd
src/nikonmn_int.cpp
@@ -45,6 +45,7 @@
45
#include <iomanip>
46
#include <cassert>
47
#include <cstring>
48
+#include <bits/stdint-uintn.h>
49
#include <math.h> //for log, pow, abs
50
51
// *****************************************************************************
@@ -2944,7 +2945,7 @@ zmountlens[] = {
2944
2945
{0 , "", ""} //end of array
2946
};
2947
- uint16_t lid = value.toLong();
2948
+ uint16_t lid = static_cast<uint16_t>(value.toLong());
2949
for(int i = 0; zmountlens[i].lid != 0; ++i){
2950
if ( zmountlens[i].lid == lid ) return os << zmountlens[i].manuf << " " << zmountlens[i].lensname;
2951
}
0 commit comments