Skip to content

Commit c2310a3

Browse files
author
Bingle
committed
refactor: Increase enclave memory; allocate arbitrary memory to WASM; import data
1 parent 72774ea commit c2310a3

File tree

11 files changed

+433
-88
lines changed

11 files changed

+433
-88
lines changed

app/Cargo.lock

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extern "C" {
3333
retval: *mut sgx_status_t,
3434
binary: *const u8,
3535
binary_len: usize,
36-
result_out: *mut i32,
36+
result_out: *mut f64,
3737
) -> sgx_status_t;
3838
}
3939

@@ -72,7 +72,7 @@ fn main() {
7272

7373
let binary = fs::read(WASM_FILE).unwrap();
7474

75-
let mut result_out = 0i32;
75+
let mut result_out = 0f64;
7676

7777
let result = unsafe {
7878
exec_wasm_test(

enclave/Cargo.lock

Lines changed: 67 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)