src/simulator/nstime.h
changeset 192 cdb44e98954c
parent 170 9f68cb694f40
child 199 8c6ae79c3641
--- a/src/simulator/nstime.h	Tue Dec 12 14:02:07 2006 +0100
+++ b/src/simulator/nstime.h	Tue Dec 12 14:17:00 2006 +0100
@@ -206,32 +206,28 @@
 TimeUnit<N> operator + (TimeUnit<N> const &lhs, TimeUnit<N> const &rhs)
 {
   HighPrecision retval = lhs.GetHighPrecision ();
-  bool overflow = retval.Add (rhs.GetHighPrecision ());
-  assert (!overflow);
+  retval.Add (rhs.GetHighPrecision ());
   return TimeUnit<N> (retval);
 }
 template <int N>
 TimeUnit<N> operator - (TimeUnit<N> const &lhs, TimeUnit<N> const &rhs)
 {
   HighPrecision retval = lhs.GetHighPrecision ();
-  bool overflow = retval.Sub (rhs.GetHighPrecision ());
-  assert (!overflow);
+  retval.Sub (rhs.GetHighPrecision ());
   return TimeUnit<N> (retval);
 }
 template <int N1, int N2>
 TimeUnit<N1+N2> operator * (TimeUnit<N1> const &lhs, TimeUnit<N2> const &rhs)
 {
   HighPrecision retval = lhs.GetHighPrecision ();
-  bool overflow = retval.Mul (rhs.GetHighPrecision ());
-  assert (!overflow);
+  retval.Mul (rhs.GetHighPrecision ());
   return TimeUnit<N1+N2> (retval);
 }
 template <int N1, int N2>
 TimeUnit<N1-N2> operator / (TimeUnit<N1> const &lhs, TimeUnit<N2> const &rhs)
 {
   HighPrecision retval = lhs.GetHighPrecision ();
-  bool underflow = retval.Div (rhs.GetHighPrecision ());
-  assert (!underflow);
+  retval.Div (rhs.GetHighPrecision ());
   return TimeUnit<N1-N2> (retval);
 }