diff --git a/src/exiv2.cpp b/src/exiv2.cpp index 2d03d1f3..f1208252 100644 --- a/src/exiv2.cpp +++ b/src/exiv2.cpp @@ -176,7 +176,8 @@ int main(int argc, char* const argv[]) params.cleanup(); Exiv2::XmpParser::terminate(); - return rc; + // Return a positive one byte code for better consistency across platforms + return static_cast(rc) % 256; } // main // *****************************************************************************