diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-12 14:28:17 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-06-12 16:49:41 +0100 |
commit | c297b91fdce2342b4febdf4eff5b89c6526f7e86 (patch) | |
tree | a4cc46c893ad56e8a5404cd03bc9c64c1ea1bd48 /smoketest | |
parent | b0d8506e056ade4a48794bfa05bd10d8b1f6e477 (diff) |
cast loses precision
Change-Id: Ic688f08cada4ae70ea1dfb1e29e249a166456452
Diffstat (limited to 'smoketest')
-rw-r--r-- | smoketest/libtest.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/smoketest/libtest.cxx b/smoketest/libtest.cxx index 2316b8c24184..51c184b11af6 100644 --- a/smoketest/libtest.cxx +++ b/smoketest/libtest.cxx @@ -13,6 +13,7 @@ #include <assert.h> #include <math.h> #include <sys/time.h> +#include <sal/types.h> #include <LibreOfficeKit/LibreOfficeKit.hxx> using namespace ::lok; @@ -77,9 +78,9 @@ int main (int argc, char **argv) if (!LIBREOFFICEKIT_DOCUMENT_HAS(pDocument->get(), saveAsWithOptions)) { - fprintf( stderr, "using obsolete LibreOffice %d + %d vs. %d\n", - (int)((unsigned char *)&((LibreOfficeKitDocument *) 0)->saveAsWithOptions), - (int)sizeof ((LibreOfficeKitDocument *) 0)->saveAsWithOptions, + fprintf( stderr, "using obsolete LibreOffice %" SAL_PRI_SIZET "d + %" SAL_PRI_SIZET "d vs. %" SAL_PRI_SIZET "d\n", + (size_t)((unsigned char *)&((LibreOfficeKitDocument *) 0)->saveAsWithOptions), + sizeof ((LibreOfficeKitDocument *) 0)->saveAsWithOptions, pDocument->get()->nSize ); return -1; } |