Changeset 2970 for trunk/linbox/linbox/field/modular-balanced-double.h
- Timestamp:
- 06/14/08 20:29:33 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/linbox/linbox/field/modular-balanced-double.h
r2963 r2970 162 162 163 163 std::ostream &write (std::ostream &os) const { 164 return os << "double mod " << (int)modulus;164 return os << "double mod " << int(modulus); 165 165 } 166 166 … … 179 179 180 180 std::ostream &write (std::ostream &os, const Element &x) const { 181 return os << (int)x;181 return os << int(x); 182 182 } 183 183 … … 260 260 // The extended Euclidean algoritm 261 261 int x_int, y_int, q, tx, ty, temp; 262 x_int = (int) modulus;263 y_int = ( int) (y < 0.) ? y + modulus : y;262 x_int = int (modulus); 263 y_int = (y < 0.) ? int(y + modulus) : int(y); 264 264 tx = 0; 265 265 ty = 1;
