[Oberon] OBNC Sets incorrect output

Diego Sardina dsar at eml.cc
Mon Mar 21 11:17:28 CET 2022


On Mon, Mar 21, 2022, at 4:53 AM, thutt at harp-project.com wrote:
> Joerg writes:
>  >    {32} will be translated to (0x1u << 32)
>  > 
>  >    I‘m not a C specialist, but shouldn‘t it read (0x1ull << 32)
>
> It varies from compiler to compiler.  With gcc, this will facilitate
> shifting more than 31 bits.
>
> But, shifting more than the number of bits in an integer is entering
> into 'undefined behavior' (or is it 'implementation defined')
> territory.
>
> -- 
> I have never met a beet which I like.
>

Taylor Hutt?  The Oberon-2 paladin?  :-)



More information about the Oberon mailing list