We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf4381d commit 53a2467Copy full SHA for 53a2467
README.md
@@ -35,7 +35,7 @@ impl TestIt {
35
/// TestIt new method.
36
#[no_mangle]
37
pub extern fn testit_new(value: u8) -> *mut TestIt {
38
- opaque_pointer::raw(TestIt::new(testit))
+ opaque_pointer::raw(TestIt::new(value))
39
}
40
41
/// TestIt add method.
@@ -54,7 +54,7 @@ pub extern fn testit_get(testit: *const TestIt) -> u8 {
54
55
/// TestIt free.
56
57
-pub extern fn testit_free(testit: *const TestIt) {
+pub extern fn testit_free(testit: *mut TestIt) {
58
unsafe { opaque_pointer::free(testit) }
59
60
```
0 commit comments