This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
http://gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/Min-and-Max.html
- From: Robert Gezelter <gezelter at rlgsc dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 21 Feb 2011 15:57:48 -0500
- Subject: http://gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/Min-and-Max.html
- Reply-to: gezelter at rlgsc dot com
Gentlemen,
The example of the C preprocessor implementation of MIN is erroneous:
#define MIN(X,Y) ((X) < (Y) ? : (X) : (Y))
should read:
#define MIN(X,Y) ((X) < (Y) ? (X) : (Y))
- Bob
+--------------------------------------------------------------------------+
| Robert "Bob" Gezelter E-Mail: gezelter@rlgsc.com |
| Robert Gezelter Software Consultant Voice: +1 (718) 463 1079 |
| 35-20 167th Street, Suite 215 Fax: (on Request) |
| Flushing, New York 11358-1731 |
| United States of America http://www.rlgsc.com |
+--------------------------------------------------------------------------+