Computer Chess Club Archives


Search

Terms

Messages

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

Author: Pat King

Date: 09:28:57 03/20/04

Go up one level in this thread


On March 20, 2004 at 10:48:04, Heiner Marxen wrote:

>You should make a typedef for your 64-bit type, like
>
>typedef unsigned long long	U64_t;

I did, even before I initiated this discussion, but thanks for the tip. With me
it never pays to assume :)

>Yes, that way (with the cast) it is more portable than the suffix with LL,
>since you only need to get the typedef right.
>Another portability problem is the printf format for such values.

I'm actually working with C++, so no printf worries. static_cast<T> gives me
fits, however!

>
>Cheers,
>Heiner

Thanks again,
Pat



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.