mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-22 14:15:01 +08:00
[2/N] Fixes clang-tidy warnings in header files (#113727)
This PR fixes more clang-tidy warnings in common headers. Pull Request resolved: https://github.com/pytorch/pytorch/pull/113727 Approved by: https://github.com/Skylion007
This commit is contained in:
@ -15,7 +15,7 @@ struct LoadImpl {
|
||||
template <>
|
||||
struct LoadImpl<bool> {
|
||||
C10_HOST_DEVICE static bool apply(const void* src) {
|
||||
static_assert(sizeof(bool) == sizeof(char), "");
|
||||
static_assert(sizeof(bool) == sizeof(char));
|
||||
// NOTE: [Loading boolean values]
|
||||
// Protect against invalid boolean values by loading as a byte
|
||||
// first, then converting to bool (see gh-54789).
|
||||
|
Reference in New Issue
Block a user