Skip to content

rem errors for arguments that don't fit into storage type #7

Description

@matthias314

MWE:

julia> @emulate Int3 UInt3

julia> 127 % Int3, 255 % UInt3
(-1, 0x7)

julia> 128 % Int3
ERROR: InexactError: trunc(Int8, 128)
[...]

julia> 256 % UInt3
ERROR: InexactError: trunc(UInt8, 256)
[...]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions