Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Nov 2000 05:47:44 +1000
From:      Greg Black <gjb@gbch.net>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        andrew@ugh.net.au, "Albert D. Cahalan" <acahalan@cs.uml.edu>, hackers@FreeBSD.ORG, roam@orbitel.bg
Subject:   Re: umask(2) and -Wconversion 
Message-ID:  <nospam-3a09adf60c019fc@maxim.gbch.net>
In-Reply-To: <20001108072630.A58596@gray.westgate.gr>  of Wed, 08 Nov 2000 07:26:30 %2B0200
References:  <200011080223.eA82Nxf392522@saturn.cs.uml.edu> <Pine.BSF.4.21.0011081434400.94117-100000@starbug.ugh.net.au> <20001108072630.A58596@gray.westgate.gr> 

next in thread | previous in thread | raw e-mail | index | archive | help
Giorgos Keramidas writes:

>      3	#define VALUE	0

> My original question was if this is not behavior that should be
> considered buggy, since the size of VALUE has not been determined to be
> equal to sizeof(int) when the #define occurs, or has it?

The size of VALUE is not the issue; the type is `int' in the
line quoted above.  If you want VALUE to be a `short', you need
to say:

    #define VALUE ((short) 0)

-- 
Greg Black <gjb@acm.org>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?nospam-3a09adf60c019fc>