Skip to content

Fix esoteric load [DoubleInt<T>] crash #123

Description

@oscbyspro

I stumbled upon this precondition failure (crash) while rewriting some tests. It is triggered by some esoteric conditions. In short, the arrays should contain Element where Element == Element.Element or its contents should be reinterpreted as Element.Element in these methods (the ones based on Contiguous sequences). The latter is more lenient, so I will try that first.

let _ = U32(load:   [] as [DoubleInt<U16>])
let _ = U32.init(   [] as [DoubleInt<U16>])
let _ = U32.exactly([] as [DoubleInt<U16>])

let _ = U64(load:   [] as [DoubleInt<U32>])
let _ = U64.init(   [] as [DoubleInt<U32>])
let _ = U64.exactly([] as [DoubleInt<U32>])

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugplease fix this :(subtractionhuh? where did it go?

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions