stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r524920 - /incubator/stdcxx/trunk/include/limits
Date Mon, 02 Apr 2007 21:14:30 GMT
Author: sebor
Date: Mon Apr  2 14:14:28 2007
New Revision: 524920

URL: http://svn.apache.org/viewvc?view=rev&rev=524920
Log:
2007-04-02  Martin Sebor  <sebor@roguewave.com>

	STDCXX-382
	* limits (_RWSTD_DIGITS): Cast a Boolean expression to int to silence
	many HP aCC 3.76 remarks #4296-D: arithmetic operation on boolean type.

Modified:
    incubator/stdcxx/trunk/include/limits

Modified: incubator/stdcxx/trunk/include/limits
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/limits?view=diff&rev=524920&r1=524919&r2=524920
==============================================================================
--- incubator/stdcxx/trunk/include/limits (original)
+++ incubator/stdcxx/trunk/include/limits Mon Apr  2 14:14:28 2007
@@ -195,7 +195,7 @@
 
 // 18.2.1.2, p6 - 7
 #define _RWSTD_DIGITS(type, min, max) \
-  (1 == (max) ? 1 : (_RWSTD_CHAR_BIT * int (sizeof (type)) - ((min) != 0)))
+  (1 == (max) ? 1 : (_RWSTD_CHAR_BIT * int (sizeof (type)) - int ((min) != 0)))
 
 // 18.2.1.2, p9
 #define _RWSTD_DIGITS10(digits)   (((digits) * 301) / 1000)



Mime
View raw message