Skip to content

Commit 3a1aab8

Browse files
fix: remove extra brackets for cast definition in arm/config.rs
1 parent c824690 commit 3a1aab8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/intrinsic-test/src/arm/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ std::ostream& operator<<(std::ostream& os, float16_t value);
1010
#endif
1111
1212
// T1 is the `To` type, T2 is the `From` type
13-
template<typename T1, typename T2> T1 cast(T2 x) {{
13+
template<typename T1, typename T2> T1 cast(T2 x) {
1414
static_assert(sizeof(T1) == sizeof(T2), "sizeof T1 and T2 must be the same");
15-
T1 ret{{}};
15+
T1 ret{};
1616
memcpy(&ret, &x, sizeof(T1));
1717
return ret;
18-
}}
18+
}
1919
"#;
2020

2121
pub const POLY128_OSTREAM_DEF: &str = r#"

0 commit comments

Comments
 (0)