Skip to content

Commit f740fcd

Browse files
committed
try and fix ci-build 2/N
1 parent 814357a commit f740fcd

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
@@ -45,6 +45,7 @@
4545
#include <iomanip>
4646
#include <cassert>
4747
#include <cstring>
48+
#include <bits/stdint-uintn.h>
4849
#include <math.h> //for log, pow, abs
4950

5051
// *****************************************************************************
@@ -2944,7 +2945,7 @@ zmountlens[] = {
29442945
{0 , "", ""} //end of array
29452946
};
29462947

2947-
uint16_t lid = value.toLong();
2948+
uint16_t lid = static_cast<uint16_t>(value.toLong());
29482949
for(int i = 0; zmountlens[i].lid != 0; ++i){
29492950
if ( zmountlens[i].lid == lid ) return os << zmountlens[i].manuf << " " << zmountlens[i].lensname;
29502951
}

0 commit comments

Comments
 (0)