Article View: comp.std.c
Article #3537Re: Integral promotion.
From: Thad Smith
Date: Fri, 16 Feb 1996 15:40
Date: Fri, 16 Feb 1996 15:40
15 lines
997 bytes
997 bytes
In article <4fvgrm$dv9@solutions.solon.com>, msb@sq.com wrote: >Oh dear, I have to correct Chris Torek (torek@bsdi.com). >Thus even in ANSI C, if this function is called this way: > > extern short p, q, r, test(short,short); > r = test(p,q); > >the values from p and q are still converted from short to int and back >to short. I find nothing in the Standard that states that the arguments undergo integral promotions before being assigned to the function parameters. Thad
Technical Details
Message-ID:
<4g28hr$qko@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4fstj7$2l6@solutions.solon.com> <4fu835$9de@solutions.solon.com> <4fvgrm$dv9@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: thads@csn.net (Thad Smith) Newsgroups: comp.std.c,comp.lang.c.moderated Subject: Re: Integral promotion. Date: 16 Feb 1996 09:40:43 -0600 Organization: T3 Systems Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4g28hr$qko@solutions.solon.com> References: <4fstj7$2l6@solutions.solon.com> <4fu835$9de@solutions.solon.com> <4fvgrm$dv9@solutions.solon.com> Reply-To: ThadSmith@acm.org NNTP-Posting-Host: solutions.solon.com