Skip to content

integer multiplication errors with @fastmath #58188

Open
@matthias314

Description

@matthias314

On Julia 1.11.4:

julia> (-1) * UInt(1)
0xffffffffffffffff

julia> @fastmath (-1) * UInt(1)
ERROR: InexactError: convert(UInt64, -1)

I believe the intended behavior is not to throw an error, see #15489 and #23827. Could it be that the @fastmath case was forgotten?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions