Show
Ignore:
Timestamp:
06/14/08 20:29:33 (5 months ago)
Author:
pernet
Message:

fix warnings and missing includes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/linbox/linbox/field/modular-balanced-double.h

    r2963 r2970  
    162162                 
    163163                std::ostream &write (std::ostream &os) const { 
    164                         return os << "double mod " << (int)modulus; 
     164                        return os << "double mod " << int(modulus); 
    165165                } 
    166166                 
     
    179179                 
    180180                std::ostream &write (std::ostream &os, const Element &x) const { 
    181                         return os << (int)x; 
     181                        return os << int(x); 
    182182                } 
    183183 
     
    260260                        // The extended Euclidean algoritm  
    261261                        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); 
    264264                        tx = 0;  
    265265                        ty = 1;