Computer Chess Club Archives


Search

Terms

Messages

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

Author: Pat King

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

Go up one level in this thread


On March 19, 2004 at 16:27:37, Russell Reagan wrote:

>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'?

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!

>I get the same error that
>you get when I declare it 'unsigned long'...



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.