Skip to content

Commit f8dd133

Browse files
rudybearmeta-codesync[bot]
authored andcommitted
igl | Replaced functional-style casts with static_cast in FPSCounter and VulkanImmediateCommands
Reviewed By: corporateshark Differential Revision: D112262265 fbshipit-source-id: bd499820b3d8ebb601c6195b170c202bcda9ef41
1 parent 3aa9cf9 commit f8dd133

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/igl/vulkan/VulkanImmediateCommands.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class VulkanImmediateCommands final {
7676
/// @brief Returns a unique identifiable handle, which is made of the `submitId_` and the
7777
/// `bufferIndex_` member variables
7878
[[nodiscard]] uint64_t handle() const {
79-
return (uint64_t(submitId) << 32) + bufferIndex;
79+
return (static_cast<uint64_t>(submitId) << 32) + bufferIndex;
8080
}
8181

8282
[[nodiscard]] bool operator==(const SubmitHandle& rhs) const {

0 commit comments

Comments
 (0)