Changes in libcfa/src/rational.cfa [8a25be9:ff2a33e]
- File:
-
- 1 edited
-
libcfa/src/rational.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/rational.cfa
r8a25be9 rff2a33e 10 10 // Created On : Wed Apr 6 17:54:28 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Mar 28 17:33:03201913 // Update Count : 18 112 // Last Modified On : Fri Jul 12 18:12:08 2019 13 // Update Count : 184 14 14 // 15 15 … … 35 35 static RationalImpl simplify( RationalImpl & n, RationalImpl & d ) { 36 36 if ( d == (RationalImpl){0} ) { 37 abort ( "Invalid rational number construction: denominator cannot be equal to 0.\n" );37 abort | "Invalid rational number construction: denominator cannot be equal to 0."; 38 38 } // exit 39 39 if ( d < (RationalImpl){0} ) { d = -d; n = -n; } // move sign to numerator … … 167 167 168 168 void ?|?( ostype & os, Rational(RationalImpl) r ) { 169 (ostype &)(os | r); nl( os );169 (ostype &)(os | r); ends( os ); 170 170 } // ?|? 171 171 } // distribution
Note:
See TracChangeset
for help on using the changeset viewer.