Skip to content

Commit 2c06892

Browse files
committed
Trying to solve issues with windows on rs_port.
1 parent 9d153cb commit 2c06892

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/release-rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
os: [ubuntu-latest, macos-latest] # TODO: windows-latest
25+
os: [ubuntu-latest, macos-latest, windows-latest]
2626
steps:
2727
- name: Check out the repo
2828
uses: actions/checkout@v4

source/ports/rs_port/src/types/metacall_value.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ impl MetaCallValue for i64 {
162162
fn from_metacall_raw_leak(v: *mut c_void) -> Result<Self, Box<dyn MetaCallValue>> {
163163
let value = unsafe { metacall_value_to_long(v) };
164164

165-
Ok(value)
165+
Ok(value as i64)
166166
}
167167
fn into_metacall_raw(self) -> *mut c_void {
168-
unsafe { metacall_value_create_long(self) }
168+
unsafe { metacall_value_create_long(self.try_into().unwrap()) }
169169
}
170170
}
171171
/// Equivalent to MetaCall float type.

0 commit comments

Comments
 (0)