You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2007/04/02 23:14:30 UTC
svn commit: r524920 - /incubator/stdcxx/trunk/include/limits
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 <se...@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)