Add assertion to detect TimeUnit<N> divide by zero (if not detected, it creates an infinite loop)
1.1 --- a/src/simulator/nstime.h Wed Apr 16 10:52:38 2008 -0700
1.2 +++ b/src/simulator/nstime.h Thu Apr 17 17:19:24 2008 +0100
1.3 @@ -274,6 +274,7 @@
1.4 template <int N1, int N2>
1.5 TimeUnit<N1-N2> operator / (TimeUnit<N1> const &lhs, TimeUnit<N2> const &rhs)
1.6 {
1.7 + NS_ASSERT (rhs.GetHighPrecision ().GetDouble () != 0);
1.8 HighPrecision retval = lhs.GetHighPrecision ();
1.9 retval.Div (rhs.GetHighPrecision ());
1.10 return TimeUnit<N1-N2> (retval);