[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a
Maximiliano Curia
maxy at moszumanska.debian.org
Thu Jul 13 17:45:11 UTC 2017
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=b1ad7a9
The following commit has been merged in the master branch:
commit b1ad7a925c6be7efcdcefe5cfb76648d5440e1a5
Author: Robin Mills <robin at clanmills.com>
Date: Mon Apr 27 21:33:14 2015 +0000
#922. Fixing MSVC warnings.
---
src/image.cpp | 3 ++-
src/tiffimage.cpp | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/image.cpp b/src/image.cpp
index 5d11a03..5481732 100644
--- a/src/image.cpp
+++ b/src/image.cpp
@@ -356,7 +356,7 @@ namespace Exiv2 {
{
std::string result;
- int need = fmt.size()*4; // initial guess
+ int need = (int) fmt.size()*4; // initial guess
char* buffer = new char[need]; // allocate a buffer
va_list ap; // variable arg list
@@ -366,6 +366,7 @@ namespace Exiv2 {
if (need < 0) { // make buffer bigger
delete[] buffer;
+ need = -need ;
buffer = new char[need+2];
va_start(ap, fmt);
need=vsnprintf(buffer, need, fmt.c_str(), ap);
diff --git a/src/tiffimage.cpp b/src/tiffimage.cpp
index 4c353ea..4e457a0 100644
--- a/src/tiffimage.cpp
+++ b/src/tiffimage.cpp
@@ -484,8 +484,8 @@ namespace Exiv2 {
: count > 5 ? 5
: count
;
- size_t pad = isStringType(type) ? 1 : 0;
- size_t size = isStringType(type) ? 1
+ uint32_t pad = isStringType(type) ? 1 : 0;
+ uint32_t size = isStringType(type) ? 1
: is2ByteType(type) ? 2
: is4ByteType(type) ? 4
: 1
--
exiv2 packaging
More information about the pkg-kde-commits
mailing list