Skip to content

Type changes in scalar computation #3759

Closed
@lindahua

Description

On latest commit, I find:

julia> typeof(-int32(1))
Int64

julia> typeof(ones(Int32,1))
Array{Int32,1}

Actually, any arithmetic operation on Int32 scalars yields Int64 scalar, and operations on Int32 arrays yields Int32 array.

Is this supposed the case? or a bug?

Metadata

Assignees

No one assigned

    Labels

    breakingThis change will break code

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions