Skip to content

Commit

Permalink
Fix build on arm64 linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
azteca1998 committed Jun 7, 2024
1 parent 99c9164 commit 0551d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion melior/src/string_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl<'a> StringRef<'a> {
/// Creates a string reference.
pub fn new(string: &'a str) -> Self {
let string = MlirStringRef {
data: string.as_bytes().as_ptr() as *const i8,
data: string.as_bytes().as_ptr() as *const _,
length: string.len(),
};

Expand Down

0 comments on commit 0551d68

Please sign in to comment.