Fix static_assert string literal that contains a "\%". This is no longer (#860)

valid. They can only be simple escape sequences. Removing '\' fixes
issue. Assert message now compiles and emits the '%' as expected.
Этот коммит содержится в:
David Pagan
2023-08-21 16:19:59 -07:00
коммит произвёл GitHub
родитель d33cd5a233
Коммит 2ec2648247
+1 -1
Просмотреть файл
@@ -64,7 +64,7 @@ struct mscclThreadBlock {
int16_t channelId; // associated channel. -1 indicates a thread block with only local copies
}; // 5384 bytes
static_assert(sizeof(struct mscclThreadBlock) % sizeof(uint64_t) == 0, "Sanity check: sizeof(struct mscclThreadBlock) \% sizeof(uint64_t) != 0");
static_assert(sizeof(struct mscclThreadBlock) % sizeof(uint64_t) == 0, "Sanity check: sizeof(struct mscclThreadBlock) % sizeof(uint64_t) != 0");
struct mscclFlag {
uint64_t flag;