stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r328755 - /incubator/stdcxx/trunk/etc/config/src/DIV_OVERLOADS.cpp
Date Wed, 26 Oct 2005 22:37:50 GMT
Author: sebor
Date: Wed Oct 26 15:37:41 2005
New Revision: 328755

URL: http://svn.apache.org/viewcvs?rev=328755&view=rev
Log:
2005-10-26  Martin Sebor  <sebor@roguewave.com>

	* DIV_OVERLOADS.cpp (main): Avoided invoking div() with the argument
	of 0 to prevent division by zero errors at runtime (doh!)

Modified:
    incubator/stdcxx/trunk/etc/config/src/DIV_OVERLOADS.cpp

Modified: incubator/stdcxx/trunk/etc/config/src/DIV_OVERLOADS.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/src/DIV_OVERLOADS.cpp?rev=328755&r1=328754&r2=328755&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/DIV_OVERLOADS.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/DIV_OVERLOADS.cpp Wed Oct 26 15:37:41 2005
@@ -51,11 +51,11 @@
 
 #endif   // _RWSTD_USE_CONFIG
 
-    check_div ((int)0, "INT");
-    check_div ((long)0, "LONG");
+    check_div ((int)1, "INT");
+    check_div ((long)1, "LONG");
 
 #if defined (LONG_LONG)
-    check_div ((LONG_LONG)0, "LLONG");
+    check_div ((LONG_LONG)1, "LLONG");
 #endif   // LONG_LONG
 
     return 0;



Mime
View raw message