Skip to content

Commit

Permalink
Fixed some casting warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hancher committed Feb 4, 2007
1 parent 9d85573 commit 435f1ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/vw/Image/Transform.h
Expand Up @@ -517,10 +517,10 @@ namespace vw {
inline BBox2i compute_transformed_bbox_fast_int( ImageT const& image, TransformT const& tx ) {
BBox2f fbbox = compute_transformed_bbox_fast( image, tx );
BBox2i bbox;
bbox.min().x() = floor(fbbox.min().x());
bbox.max().x() = ceil(fbbox.max().x());
bbox.min().y() = floor(fbbox.min().y());
bbox.max().y() = ceil(fbbox.max().y());
bbox.min().x() = (int) floor(fbbox.min().x());
bbox.max().x() = (int) ceil(fbbox.max().x());
bbox.min().y() = (int) floor(fbbox.min().y());
bbox.max().y() = (int) ceil(fbbox.max().y());
return bbox;
}

Expand Down
2 changes: 1 addition & 1 deletion src/vw/Mosaic/KMLQuadTreeGenerator.h
Expand Up @@ -195,7 +195,7 @@ namespace mosaic {
Vector2 y_vector = tx.forward( pixel+Vector2(0,1) ) - pos;
double degrees_per_pixel = (std::min)( norm_2(x_vector), norm_2(y_vector) );
double pixels_per_circumference = 360.0 / degrees_per_pixel;
int scale_exponent = ceil( log(pixels_per_circumference)/log(2) );
int scale_exponent = (int) ceil( log(pixels_per_circumference)/log(2) );
int resolution = 1 << scale_exponent;
return resolution;
}
Expand Down

0 comments on commit 435f1ad

Please sign in to comment.