Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

avoids clang -Wparentheses warning #220

Merged
merged 1 commit into from
Nov 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cub/util_device.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ public:

// We don't use `CubDebug` here because we let the user code
// decide whether or not errors are hard errors.
if (payload.error = std::forward<Invocable>(f)(payload.attribute))
payload.error = std::forward<Invocable>(f)(payload.attribute);
if (payload.error)
// Clear the global CUDA error state which may have been
// set by the last call. Otherwise, errors may "leak" to
// unrelated kernel launches.
Expand Down