Fix issues on ARM builds (#2205)

* Specify base class initialization in Copy Constructor

* Fix printing of uint64_t variable in ARM 32bits

Use cinttypes

* Fix alignment issues on ARM 32 bits

* tests: add assertion with custom message
This commit is contained in:
Luis Díaz Más
2022-04-13 15:22:22 +02:00
committed by GitHub
parent 6203ded16f
commit 941017d281
6 changed files with 12 additions and 16 deletions
+2 -1
View File
@@ -16,6 +16,7 @@
#include "types.hpp"
// + standard includes
#include <cinttypes>
#include <cstdio>
#include <cstring>
#include <iostream>
@@ -184,7 +185,7 @@ long BmffImage::boxHandler(std::ostream& out /* = std::cout*/, Exiv2::PrintStruc
if (bTrace) {
bLF = true;
out << indent(depth) << "Exiv2::BmffImage::boxHandler: " << toAscii(box_type)
<< Internal::stringFormat(" %8ld->%lu ", address, box_length);
<< Internal::stringFormat(" %8ld->%" PRIu64 " ", address, box_length);
}
if (box_length == 1) {