Complete.Org:
Mailing Lists:
Archives:
freeciv-dev:
July 2000: [Freeciv-Dev] Re: PATCH to FreeCiv CVS-Snapshot-Jul-19 |
[Freeciv-Dev] Re: PATCH to FreeCiv CVS-Snapshot-Jul-19[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Jeff Mallatt <jjm@xxxxxxxxxxxx> writes: > - int c = MAX(1, city_list_size(&pplayer->cities)); > + > + if((c = city_list_size(&pplayer->cities)) < 1) > + c = 1; /* using MAX would mean double invocation of city_list_size() */ It seems MAX is only being used for 'int' arguments currently, so we should rather make it an inline function, I think. Falk
|