Changeset 2970 for trunk/linbox/linbox/field/modular-balanced-float.h
- Timestamp:
- 06/14/08 20:29:33 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/linbox/linbox/field/modular-balanced-float.h
r2963 r2970 168 168 169 169 std::ostream &write (std::ostream &os) const { 170 return os << "float mod " << (int)modulus;170 return os << "float mod " << int(modulus); 171 171 } 172 172 … … 185 185 186 186 std::ostream &write (std::ostream &os, const Element &x) const { 187 return os << (int)x;187 return os << int(x); 188 188 } 189 189 … … 266 266 // The extended Euclidean algoritm 267 267 int x_int, y_int, q, tx, ty, temp; 268 x_int = (int) modulus;269 y_int = ( int) (y < 0.) ? y + modulus : y;268 x_int = int (modulus); 269 y_int = (y < 0.) ? int(y + modulus) : int(y); 270 270 tx = 0; 271 271 ty = 1;
