Skip to content

Broadcasting sizeof on Ptr returns wrong size #36710

Closed
@nielsls

Description

@nielsls

I'm on Julia v1.4.2 32bit so my pointers are only 4 bytes
Or so I thought... It seems sizeof() has some trouble broadcasting on a parametric Ptr.

julia> sizeof(Ptr)
4

julia> sizeof.((Ptr,))
(8,)

julia> sizeof.((Ptr{Cvoid},))
(4,)

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behaviorcompiler:codegenGeneration of LLVM IR and native codecompiler:inferenceType inference

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions