🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3548

Re: Integral promotion.

#3548
From: Jens M Andreasen
Date: Sun, 25 Feb 1996 18:13
20 lines
1153 bytes

On 24 Feb 1996, Stan Ryckman wrote:

On a discussion on   (short) x++ ; /* Warning: Loss of precision */

> I don't think compilers need to issue warnings for potential loss
> of precision in any case, though, but I've been wrong before.
> And we all know by now that they *may* issue such warnings at any
> time without violating the Standard (even for "x *= 2;").

Since this is really happening, I would like to know: 

1) Is it normal? (as opposed to legal) or should I consider it a bug (a 
   legal bug but still a nuisance).

2) _Should_ there be a way to cast ones way out? (Obviously not on this  
   platform)

// Jens M Andreasen
Technical Details
Message-ID: <4gq8rh$os0@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4ggbcq$81c@solutions.solon.com> <4ggg41$91j@solutions.solon.com> <4gnb8t$bgl@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: Jens M Andreasen <jens-and@dsv.su.se>
Newsgroups: comp.std.c,comp.lang.c.moderated
Subject: Re: Integral promotion.
Date: 25 Feb 1996 12:13:05 -0600
Organization: Digital Solutions
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4gq8rh$os0@solutions.solon.com>
References: <4ggbcq$81c@solutions.solon.com> <4ggg41$91j@solutions.solon.com> <4gnb8t$bgl@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com