Skip to content

Commit 8d61073

Browse files
authored
[NFC][SemaHLSL] Fix typo causing float to double conversion (#148941)
- it was noted, [here](#145795 (comment)), that by accidently not specifying this explicitly as a float it will cause a build warning on MSVC - this commit resolves this by explicitly specifying it as a float
1 parent 1fe366d commit 8d61073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ bool SemaHLSL::handleRootSignatureElements(
11501150
if (!llvm::hlsl::rootsig::verifyMaxAnisotropy(Sampler->MaxAnisotropy))
11511151
ReportError(Loc, 0, 16);
11521152
if (!llvm::hlsl::rootsig::verifyMipLODBias(Sampler->MipLODBias))
1153-
ReportFloatError(Loc, -16.f, 15.99);
1153+
ReportFloatError(Loc, -16.f, 15.99f);
11541154
} else if (const auto *Clause =
11551155
std::get_if<llvm::hlsl::rootsig::DescriptorTableClause>(
11561156
&Elem)) {

0 commit comments

Comments
 (0)