Skip to content

Commit b473f95

Browse files
committed
Fix
1 parent c82edf3 commit b473f95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/builtin/hlsl/shapes/beziers.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ struct Quadratic
413413

414414
// exponent so large it would wipe the mantissa on any relative operation
415415
// should be exp2<float_t>(numeric_limits<float_t>::digits) ater tgmath has an exp2
416-
const float_t PARAMETER_THRESHOLD = hlsl::exp2(numeric_limits<float_t>::digits);
416+
const float_t PARAMETER_THRESHOLD = hlsl::exp2(_static_cast<float>(numeric_limits<float_t>::digits));
417417
Candidates candidates;
418418

419419
float_t2 Bdiv2 = B*float_t(NBL_FP64_LITERAL(0.5));

0 commit comments

Comments
 (0)