Skip to content

Commit

Permalink
fix postgres_storage for arm
Browse files Browse the repository at this point in the history
  • Loading branch information
haniavis committed Jun 27, 2020
1 parent 453edc8 commit a262252
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 @@ -368,7 +368,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 @@ -391,7 +391,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 @@ -439,7 +439,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 a262252

Please sign in to comment.