We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53b18b0 commit 74e2b50Copy full SHA for 74e2b50
crates/intrinsic-test/src/x86/config.rs
@@ -329,7 +329,7 @@ pub const PLATFORM_C_FORWARD_DECLARATIONS: &str = r#"
329
std::memcpy(&ret, &x, sizeof(T1));
330
return ret;
331
} else {
332
- static_assert(sizeof(T1) == sizeof(T2) || std::is_convertible_v<T2, T1>,
+ static_assert(sizeof(T1) <= sizeof(T2) || std::is_convertible_v<T2, T1>,
333
"T2 must either be convertible to T1, or have the same size as T1!");
334
return T1{};
335
}
0 commit comments