Skip to content

Commit

Permalink
fix postgres_storage for arm 1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
haniavis committed Jun 29, 2020
1 parent 2c84988 commit 328de3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions experimental/plugins/postgres_storage/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ impl PostgresWallet {

let record = handles.get(&record_handle).unwrap();

unsafe { *id_ptr = record.id.as_ptr() as *const i8; }
unsafe { *id_ptr = record.id.as_ptr() as *const libc::c_char; }

ErrorCode::Success
}
Expand All @@ -408,7 +408,7 @@ impl PostgresWallet {

let record = handles.get(&record_handle).unwrap();

unsafe { *type_ptr = record.type_.as_ptr() as *const i8; }
unsafe { *type_ptr = record.type_.as_ptr() as *const libc::c_char; }

ErrorCode::Success
}
Expand Down Expand Up @@ -456,7 +456,7 @@ impl PostgresWallet {

let record = handles.get(&record_handle).unwrap();

unsafe { *tags_json_ptr = record.tags.as_ptr() as *const i8; }
unsafe { *tags_json_ptr = record.tags.as_ptr() as *const libc::c_char; }

ErrorCode::Success
}
Expand Down

0 comments on commit 328de3d

Please sign in to comment.