mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
bigger tag size fixes
This commit is contained in:
parent
2b84fd0009
commit
768c59f45d
4 changed files with 16 additions and 3 deletions
|
@ -170,7 +170,16 @@ impl<'a> UnionLayout<'a> {
|
|||
|
||||
pub fn tag_id_builtin(&self) -> Builtin<'a> {
|
||||
match self {
|
||||
UnionLayout::NonRecursive(tags) | UnionLayout::Recursive(tags) => {
|
||||
UnionLayout::NonRecursive(_tags) => {
|
||||
// let union_size = tags.len();
|
||||
// Self::tag_id_builtin_help(union_size)
|
||||
|
||||
// The quicksort-benchmarks version of Quicksort.roc segfaults when
|
||||
// this number is not I64. There must be some dependence on that fact
|
||||
// somewhere in the code, I have not found where that is yet...
|
||||
Builtin::Int64
|
||||
}
|
||||
UnionLayout::Recursive(tags) => {
|
||||
let union_size = tags.len();
|
||||
|
||||
Self::tag_id_builtin_help(union_size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue