summaryrefslogtreecommitdiff
path: root/jpeg-utils.cpp
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@tbzatek.englab.brq.redhat.com>2008-08-04 11:31:04 +0200
committerTomas Bzatek <tbzatek@tbzatek.englab.brq.redhat.com>2008-08-04 11:31:04 +0200
commit1792a2cb2349cb8ba8273aea4b3a6ed52e80e149 (patch)
tree0123cf11ecb951bdc6b911789464480009e5087b /jpeg-utils.cpp
parentee8d3aa3f337cef3faae8d45c6e23ab05f380db8 (diff)
downloadcataract-1792a2cb2349cb8ba8273aea4b3a6ed52e80e149.tar.xz
Fix gcc 4.1.2 compilation warnings
Add missing sample file
Diffstat (limited to 'jpeg-utils.cpp')
-rw-r--r--jpeg-utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/jpeg-utils.cpp b/jpeg-utils.cpp
index 973b448..a66a607 100644
--- a/jpeg-utils.cpp
+++ b/jpeg-utils.cpp
@@ -375,12 +375,12 @@ calculate_sizes (const unsigned long max_width, const unsigned long max_height,
if ((*width > *height) && (max_ratio <= real_ratio))
{
- *height = max_width / real_ratio;
+ *height = (unsigned long) (max_width / real_ratio);
*width = max_width;
}
else
{
- *width = max_height * real_ratio;
+ *width = (unsigned long) (max_height * real_ratio);
*height = max_height;
}
}