Computer Chess Club Archives


Search

Terms

Messages

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

Author: Pat King

Date: 13:43:24 03/19/04

Go up one level in this thread


On March 19, 2004 at 16:37:46, Pat King wrote:

>Definitely 'unsigned long long', and definitely 64 bits there based on some
>things I've done with the debugger. If it's working for Cygwin, I guess for now
>I'll assume it's a mingw quirk. Thanks!

Sheesh! I know what happens when I 'assume'. And I should know to read all the
responses before I respond to any of them! Dieter has it right -- I failed to
consider the type of the constant '1'. Per his example, the right way to do
things is

unsigned long long I = (unsigned long long)1 << 35; // I'm guessing this is more
//portable than '1LLU'?



This page took 0.01 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.