diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-08-10 14:34:24 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-08-10 14:34:24 +0200 |
| commit | 7f74efd63d8026e1d11d33aa9f3b236127bb89dc (patch) | |
| tree | 40e80988a94a5d65fdd8f7e55fd8658141f0edc1 /jpeg-utils.cpp | |
| parent | 3462576fd6bc883c41042fb7ae93ebabb12718d8 (diff) | |
| parent | 1792a2cb2349cb8ba8273aea4b3a6ed52e80e149 (diff) | |
| download | cataract-7f74efd63d8026e1d11d33aa9f3b236127bb89dc.tar.xz | |
Merge branch 'master' of ssh://staflik/projects/git/cataract
Conflicts:
jpeg-utils.cpp
Diffstat (limited to 'jpeg-utils.cpp')
| -rw-r--r-- | jpeg-utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jpeg-utils.cpp b/jpeg-utils.cpp index 5c50914..cb8238a 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; } } |
