Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 stopmotion (0.8.5-2) unstable; urgency=medium
 .
   * hack around integer size mismatch to std::min() on 32-bit systems
Author: Barak A. Pearlmutter <bap@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2019-11-19

--- stopmotion-0.8.5.orig/src/technical/audio/qtaudiodriver.cpp
+++ stopmotion-0.8.5/src/technical/audio/qtaudiodriver.cpp
@@ -102,7 +102,7 @@ private:
 		char* buf = reinterpret_cast<char*>(&*buffer.begin());
 		while (0 < length) {
 			int len2 = s->fillBuffer(buf,
-				std::min(length, buffer_size * sizeof(sample_t)));
+				std::min(length, (unsigned long)buffer_size * sizeof(sample_t)));
 			if (len2 == 0) {
 				return false;
 			}
--- stopmotion-0.8.5.orig/src/test/testundo.cpp
+++ stopmotion-0.8.5/src/test/testundo.cpp
@@ -574,7 +574,7 @@ void testUndo(Executor& e, ModelTestHelp
 	FileCommandLogger fileLogger;
 	static const char tmpDirTemplate[] = "/tmp/lsmXXXXXX";
 	char tmpDirName[sizeof(tmpDirTemplate)];
-	strncpy(tmpDirName, tmpDirTemplate, sizeof(tmpDirTemplate));
+	strncpy(tmpDirName, tmpDirTemplate, sizeof(tmpDirName));
 	mkdtemp(tmpDirName);
 	std::string tmpFileName(tmpDirName);
 	tmpFileName += "/command.log";
