Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Outputting u64 word using printf?

Author: Dieter Buerssner

Date: 09:21:13 06/07/04

Go up one level in this thread


On June 07, 2004 at 12:14:20, Fabien Letouzey wrote:

>On June 07, 2004 at 12:08:05, Dieter Buerssner wrote:
>
>>3 The integer promotions are performed on each of the operands. The type of the
>>result is that of the promoted left operand. If the value of the right operand
>>is negative or is greater than or equal to the width of the promoted left
>>operand, the behavior is undefined.
>
>>The last sentence ...
>
>Promotions only concern integer types smaller than "int"s, so it does not affect
>the current discussion.

>Is it relevant to what you said?

I was refering to the value of the operand part, not to the promotion part.

unsigned i=1;
i<<32;

undefined behaviour with 32 bit unsigned ints.

Regards,
Dieter



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.