Skip to content

Commit

Permalink
fix char issue once again
Browse files Browse the repository at this point in the history
  • Loading branch information
kp2pml30 committed Oct 8, 2024
1 parent f604b6c commit 41a38e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/genvm-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
needs: [pre-commit]
runs-on: ubuntu-latest
steps:
- run: sudo apt-get install -y python3-poetry
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion executor/src/wasi/genlayer_sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ impl Context {
}

fn vec_from_cstr_libc(str: *const u8) -> Arc<[u8]> {
let res = Arc::from(unsafe { CStr::from_ptr(str as *const i8) }.to_bytes());
let res = Arc::from(unsafe { CStr::from_ptr(str as *const std::ffi::c_char) }.to_bytes());
unsafe {
libc::free(str as *mut std::ffi::c_void);
}
Expand Down

0 comments on commit 41a38e4

Please sign in to comment.