From ae4e63b27a1f47d08b7ebde2e92074510bc1f0c4 Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Fri, 26 Aug 2016 09:54:50 +0000 Subject: [PATCH] =?UTF-8?q?#1214=20Patch=20submitted=20r4440.=20=20Thank?= =?UTF-8?q?=20You=20to=20Ond=C5=99ej=20for=20reporting=20this=20and=20prov?= =?UTF-8?q?iding=20the=20patch.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tags.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tags.cpp b/src/tags.cpp index 1d4ce77e..2e556799 100644 --- a/src/tags.cpp +++ b/src/tags.cpp @@ -2405,8 +2405,8 @@ namespace Exiv2 { if (value.toRational(n).first != 0) break; } for (int i = 0; i < n + 1; ++i) { - const int32_t z = value.toRational(i).first; - const int32_t d = value.toRational(i).second; + const uint32_t z = (uint32_t) value.toRational(i).first; + const uint32_t d = (uint32_t) value.toRational(i).second; if (d == 0) { os << "(" << value << ")";