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 <[EMAIL PROTECTED]>
* 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;