diff options
author | Hubert Figuiere <hub@figuiere.net> | 2007-12-20 12:01:33 -0500 |
---|---|---|
committer | Hubert Figuiere <hub@figuiere.net> | 2007-12-20 12:01:33 -0500 |
commit | 491fac89dfb73ac64ce06712638069d31e7eba60 (patch) | |
tree | 9570cce7b66f8f249aaf734653c631205b493d6e /source | |
parent | 374eb7ddede172ac9fd87267962f9001050da5ce (diff) |
* source/XMPCore/XMPUtils.cpp (ConvertFromInt64): Fix format
for long long int that was causing a failure on ppc (big endian).
(UPSTREAM)
Diffstat (limited to 'source')
-rw-r--r-- | source/XMPCore/XMPUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/XMPCore/XMPUtils.cpp b/source/XMPCore/XMPUtils.cpp index 0dacc0c..69f92c4 100644 --- a/source/XMPCore/XMPUtils.cpp +++ b/source/XMPCore/XMPUtils.cpp @@ -915,7 +915,7 @@ XMPUtils::ConvertFromInt ( XMP_Int32 binValue, { XMP_Assert ( (format != 0) && (strValue != 0) && (strSize != 0) ); // Enforced by wrapper. - if ( *format == 0 ) format = "%d"; + if ( *format == 0 ) format = "%d"; // format for int, which is 32bits on most arch including x86_64 sConvertedValue->erase(); sConvertedValue->reserve ( 100 ); // More than enough for any reasonable format and value. @@ -944,7 +944,7 @@ XMPUtils::ConvertFromInt64 ( XMP_Int64 binValue, { XMP_Assert ( (format != 0) && (strValue != 0) && (strSize != 0) ); // Enforced by wrapper. - if ( *format == 0 ) format = "%d"; + if ( *format == 0 ) format = "%lld"; // format for long long int which should be ok for most arch. sConvertedValue->erase(); sConvertedValue->reserve ( 100 ); // More than enough for any reasonable format and value. |