mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Add a TODO comment for later
This commit is contained in:
parent
3aec2a9182
commit
c2ab73c115
1 changed files with 5 additions and 0 deletions
|
@ -1779,6 +1779,11 @@ fn test_to_comparison<'a>(
|
||||||
let real_len = env.unique_symbol();
|
let real_len = env.unique_symbol();
|
||||||
let test_len = env.unique_symbol();
|
let test_len = env.unique_symbol();
|
||||||
|
|
||||||
|
// TODO if we make a LowLevel for getting list lenth that returns
|
||||||
|
// usize, then we could use usize here instead of u64, which
|
||||||
|
// would be slightly more efficient on 32-bit targets.
|
||||||
|
// Would let us change Layout::U64 to Layout::usize(env.target_info)
|
||||||
|
// in here and in various related places that also rely on list length.
|
||||||
stores.push((real_len, Layout::U64, real_len_expr));
|
stores.push((real_len, Layout::U64, real_len_expr));
|
||||||
stores.push((test_len, Layout::U64, test_len_expr));
|
stores.push((test_len, Layout::U64, test_len_expr));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue