Computer Chess Club Archives


Search

Terms

Messages

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

Author: Russell Reagan

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

Go up one level in this thread


On March 19, 2004 at 16:17:47, Pat King wrote:

>When attempting shifts > 32 on 64 bit types with mingw, I get a "Warning - shift
>greater than data type", and, sure enough, unexpected things are happening to my
>data. The gcc docs weasel about how shift "may" work on some implementations.
>
>So is this a mingw thing? a gcc thing? a 32 bit OS thing? Are there other
>operations lurking out there that only "may" work?
>
>TIA, Pat

It works for me using Cygwin gcc. Are you sure you declared your data 'unsigned
long long' (two longs!) and not just 'unsigned long'? I get the same error that
you get when I declare it 'unsigned long'...



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.