Message ID | 55941D68.9060902@netcologne.de |
---|---|
State | New |
Headers | show |
On Wed, 1 Jul 2015, Thomas Koenig wrote: > I just committed the following patch to the WWW docs. Thanks. In the description, are the integers constants truncated or (the result of) the division? > An error was reported by Gerald's script, but that seems to have > been spurious. At least, there was no error on revalidation. Sorry about that! This happens perhaps once a year and I believe is due to a server or connection timeout somewhere. Your change and the page per see indeed appear fine. erald
On Wed, Jul 01, 2015 at 11:39:09PM +0200, Gerald Pfeifer wrote: > On Wed, 1 Jul 2015, Thomas Koenig wrote: > > I just committed the following patch to the WWW docs. > > Thanks. In the description, are the integers constants truncated > or (the result of) the division? > The result is truncated. real x x = 4/5 end is truncated to 'x = 0'. The remainder of 4 is tossed.
Index: changes.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-6/changes.html,v retrieving revision 1.12 diff -r1.12 changes.html 67a68,70 > <li>The <code>-Winteger-division</code> option has been added, which > warns about divisions of integer constants which are truncated. > This option is included in <code>-Wall</code> by default.</li>