Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2000:
[Freeciv-Dev] Re: enums
Home

[Freeciv-Dev] Re: enums

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: enums
From: Marko Lindqvist <caz@xxxxxxxxxxxxxxxx>
Date: Fri, 7 Jan 2000 02:15:56 +0200 (EET)

On 6 Jan 2000, Falk Hueffner wrote:

> Markus Linnala <maage@xxxxxxxxx> writes:
> 
> > Enums are unsigned, so no use to check flags > 0, as they clearly
> > always are.
> 
> They're not; actually there are two C dialects, one with enums signed
> and one with enums unsigned, since the standard doesn't tell which is
> correct.
> 
>       Falk

 Yeah, for some reason I have assumed them signed until now. Used negative
ones a lot when patching badly written code.


 Caz

--


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