mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
reimplement RocList
and RocStr
This commit is contained in:
parent
16e568be76
commit
788c8a6af2
19 changed files with 680 additions and 792 deletions
|
@ -59,7 +59,7 @@ pub extern "C" fn rust_main() -> i32 {
|
|||
let roc_str = roc_main();
|
||||
|
||||
let len = roc_str.len();
|
||||
let str_bytes = roc_str.get_bytes() as *const libc::c_void;
|
||||
let str_bytes = roc_str.as_bytes().as_ptr() as *const libc::c_void;
|
||||
|
||||
if libc::write(1, str_bytes, len) < 0 {
|
||||
panic!("Writing to stdout failed!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue