Skip to content

Commit 566ffe4

Browse files
authored
Use Type as cast, not constructor. (#1918)
Fixes #1879
1 parent ec374e9 commit 566ffe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openpose/net/bodyPartConnectorBaseCL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ namespace op
6969
const Type l2Dist = sqrt((Type)(vectorAToBX*vectorAToBX + vectorAToBY*vectorAToBY));
7070
const Type threshold = sqrt((Type)(heatmapWidth*heatmapHeight))/150; // 3.3 for 368x656, 6.6 for 2x resolution
7171
if (l2Dist < threshold)
72-
return Type(defaultNmsThreshold+1e-6); // Without 1e-6 will not work because I use strict greater
72+
return (Type)(defaultNmsThreshold+1e-6); // Without 1e-6 will not work because I use strict greater
7373
}
7474
}
7575
return -1;

0 commit comments

Comments
 (0)