[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#47928: go-gopkg-in-yaml-v2-2.2.2 build fails
From: |
Bone Baboon |
Subject: |
bug#47928: go-gopkg-in-yaml-v2-2.2.2 build fails |
Date: |
Fri, 30 Apr 2021 18:21:25 -0400 |
raingloom writes:
> On Mon, 26 Apr 2021 17:39:58 -0400
> Bone Baboon <bone.baboon@disroot.org> wrote:
>
>> raingloom writes:
>> > My guess is that int is 32 bits on i686.
>>
>> The computer's CPU is 32 bit.
>>
>> How would I check if "int is 32 bits on i686"?
>
> Looking up an authoritative source (ie.: "the docs") is one way. Here
> is what I found:
>
> https://tour.golang.org/basics/11
> The int, uint, and uintptr types are usually 32 bits wide on 32-bit
> systems and 64 bits wide on 64-bit systems. When you need an integer
> value you should use int unless you have a specific reason to use a
> sized or unsigned integer type.
>
>
> Another would be to try to do an operation that would wrap around, but
> if you aren't familiar with binary arithmetic in the language in
> question, just looking it up is probably easier.
Thank you for sharing this.