From owner-freebsd-hackers Wed Nov 8 11:47:53 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from gw.gbch.net (gw.gbch.net [203.24.22.66]) by hub.freebsd.org (Postfix) with SMTP id 3824E37B479 for ; Wed, 8 Nov 2000 11:47:48 -0800 (PST) Received: (qmail 6694 invoked by uid 1001); 9 Nov 2000 05:47:44 +1000 X-Posted-By: GBA-Post 2.06 15-Sep-2000 X-PGP-Fingerprint: 5A91 6942 8CEA 9DAB B95B C249 1CE1 493B 2B5A CE30 Message-Id: Date: Thu, 09 Nov 2000 05:47:44 +1000 From: Greg Black To: Giorgos Keramidas Cc: andrew@ugh.net.au, "Albert D. Cahalan" , hackers@FreeBSD.ORG, roam@orbitel.bg Subject: Re: umask(2) and -Wconversion References: <200011080223.eA82Nxf392522@saturn.cs.uml.edu> <20001108072630.A58596@gray.westgate.gr> In-reply-to: <20001108072630.A58596@gray.westgate.gr> of Wed, 08 Nov 2000 07:26:30 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message