Skip to content

Object constructor fails on Windows #19244

@elcritch

Description

@elcritch

A unit test update failed in the Windows CI amd64_batch2_3. It appears it is due to a constructor only copying one byte of a uint32.

 test "IP V4": when defined(windows): # regular constructor fails var ip4 = InAddr(s_addr: 0x10111213'u32) assert ipv4.s_addr == 0x10111213'u32 # direct assign works var ip4v2: InAddr ip4v2.s_addr = 0x10111213'u32 assert ipv4v2.s_addr == 0x10111213'u32

Output fails with an error similar to:

 ipv4.s_addr is `19` but expected 0x10111213 

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