Skip to content

Built-in type casting works differently in darwin/amd64 and darwin/arm64 of go1.17.1. #48458

@bang9211

Description

@bang9211

I have 2 mac, the one uses intel(darwin/amd64) the other one uses M1(darwin/arm64).

I found my test case work differently in other CPU.

Built-in type casting of each version handles overflow differently.

image

image

there is no different except for arch(amd64, arm64) in 'go env', 'go version'.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions