Skip to content

Commit 5cc8aaa

Browse files
committed
self-review: remove lingering cast
1 parent 9083988 commit 5cc8aaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Parse/ParseHLSLRootSignature.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ RootSignatureParser::parseStaticSamplerParams() {
684684
auto MipLODBias = parseFloatParam();
685685
if (!MipLODBias.has_value())
686686
return std::nullopt;
687-
Params.MipLODBias = (float)*MipLODBias;
687+
Params.MipLODBias = MipLODBias;
688688
}
689689
} while (tryConsumeExpectedToken(TokenKind::pu_comma));
690690

0 commit comments

Comments
 (0)