Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: OT - mingw, long long, and shift operators

Author: Dieter Buerssner

Date: 13:26:37 03/19/04

Go up one level in this thread


You should give a small example.

For example

  unsigned long long x;
  x = 1 << 33;

will just not work (for good reasons).

  x = 1LLU << 33;

or

  x = (unsigned long long)1 << 33;

should work (with MinGW, or with any C compiler, that implemented long long,
which is part of ICO C from 1999).

Similarily,

 x = 0x12345678*0x12345678;

might not do, what you expect.

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.