It seems the macros for 64-bit integral format strings is incorrect when
compiled in Visual Studio. This was resulting in incorrect xref
tables. Attached is a patch which fixes this issue.
- Mike Slegeir
Index: src/PdfCompilerCompat.h
===================================================================
--- src/PdfCompilerCompat.h (revision 3317)
+++ src/PdfCompilerCompat.h (working copy)
@@ -131,8 +131,8 @@
// for example: printf("Value of signed 64-bit integer: %"PDF_FORMAT_INT64" (more blah)", 128LL)
//
#if defined(_MSC_VER)
-# define PDF_FORMAT_INT64 "I64"
-# define PDF_FORMAT_UINT64 "I64"
+# define PDF_FORMAT_INT64 "I64d"
+# define PDF_FORMAT_UINT64 "I64u"
#else
# define PDF_FORMAT_INT64 "lld"
# define PDF_FORMAT_UINT64 "llu"
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users