From 47a3e51164dd31c16cecf136da95552e0c2e9b57 Mon Sep 17 00:00:00 2001 From: Andreas Huggel Date: Fri, 2 Sep 2011 15:28:52 +0000 Subject: [PATCH] Return a positive one-byte code from the exiv2 utility for better consistency across platforms (my version of the MSYS/MinGW shell reports 0 if the application returns a negative value). --- src/exiv2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 // *****************************************************************************