mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
make TestBase64 compile
This commit is contained in:
parent
8846841a95
commit
a4475b7544
5 changed files with 66 additions and 60 deletions
|
@ -253,7 +253,7 @@ pub fn str_to_utf8<'a, 'ctx, 'env>(
|
|||
let string = complex_bitcast(
|
||||
env.builder,
|
||||
original_wrapper.into(),
|
||||
env.context.i128_type().into(),
|
||||
env.str_list_int().into(),
|
||||
"to_utf8",
|
||||
);
|
||||
|
||||
|
@ -279,14 +279,13 @@ pub fn str_from_utf8_range<'a, 'ctx, 'env>(
|
|||
complex_bitcast(
|
||||
env.builder,
|
||||
list_wrapper.into(),
|
||||
env.context.i128_type().into(),
|
||||
env.str_list_int().into(),
|
||||
"to_i128",
|
||||
),
|
||||
// TODO: This won't work for 32 bit targets!
|
||||
complex_bitcast(
|
||||
env.builder,
|
||||
count_and_start.into(),
|
||||
env.context.i128_type().into(),
|
||||
env.str_list_int().into(),
|
||||
"to_i128",
|
||||
),
|
||||
result_ptr.into(),
|
||||
|
@ -334,7 +333,7 @@ pub fn str_from_utf8<'a, 'ctx, 'env>(
|
|||
complex_bitcast(
|
||||
env.builder,
|
||||
original_wrapper.into(),
|
||||
env.context.i128_type().into(),
|
||||
env.str_list_int().into(),
|
||||
"to_i128",
|
||||
),
|
||||
result_ptr.into(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue