bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] movefilter -- line 3210 in eval.c


From: Joern Thyssen
Subject: Re: [Bug-gnubg] movefilter -- line 3210 in eval.c
Date: Tue, 3 Dec 2002 14:13:39 +0000
User-agent: Mutt/1.4i

On Tue, Dec 03, 2002 at 02:51:37PM +0100, Øystein O Johansen wrote
>     for( iPly = 0; iPly < nPlies; ++iPly ) {
>       movefilter* mFilter =
>      (iPly < MAX_FILTER_PLIES) ? &mFilters[iPly] : &(movefilter){0,0,0.0};
> 
> Sorry, I don't understand &(movefilter){0,0,0.0};


You cast {0,0,0,0} to a movefilter, and take the address of that.


Try with

static mfBasic = { 0, 0, 0, 0 };

...


    for( iPly = 0; iPly < nPlies; ++iPly ) {
      movefilter* mFilter =
     (iPly < MAX_FILTER_PLIES) ? &mFilters[iPly] : &mfBasic;

Jørn




reply via email to

[Prev in Thread] Current Thread [Next in Thread]