Ignore:
Timestamp:
03/23/17 16:17:46 (8 years ago)
Author:
Mathieu Morlighem
Message:

CHG: minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/bamg/Geometry.cpp

    r21623 r21629  
    103103                         * coefIcoor = (2^30 -1)/D
    104104                         */
    105                         coefIcoor=(MaxICoor)/(Max(pmax.x-pmin.x,pmax.y-pmin.y));
     105                        int MaxICoord = 1073741823;
     106                        coefIcoor=(MaxICoord)/(Max(pmax.x-pmin.x,pmax.y-pmin.y));
    106107                        if(coefIcoor<=0) _error_("coefIcoor should be positive");
    107108                }
     
    909910                 * coefIcoor = (2^30 -1)/D
    910911                 */
    911                 return  I2( (Icoor1) (coefIcoor*(P.x-pmin.x)) ,(Icoor1) (coefIcoor*(P.y-pmin.y)) );
     912                return  I2( (int) (coefIcoor*(P.x-pmin.x)) ,(int) (coefIcoor*(P.y-pmin.y)) );
    912913        }/*}}}*/
    913914        void Geometry::UnMarkEdges() {/*{{{*/
Note: See TracChangeset for help on using the changeset viewer.