[Libreoffice-commits] core.git: include/svtools

Stephan Bergmann sbergman at redhat.com
Thu Jan 8 08:25:39 PST 2015


 include/svtools/grfmgr.hxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 522563d79a81afc9a24e8a9f9b8f1bc763726180
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Jan 8 17:23:42 2015 +0100

    Sane SvStream* fake pointer values for 64-bit platforms
    
    cf. <https://gerrit.libreoffice.org/#/c/13659/3> "Signed/Unsigned mismatch on
    x86_64 platform on windows"
    
    Change-Id: Ie526ee431f59be374d61fe8c38bdf2a579a7234b

diff --git a/include/svtools/grfmgr.hxx b/include/svtools/grfmgr.hxx
index 88e6b45..607ecb5 100644
--- a/include/svtools/grfmgr.hxx
+++ b/include/svtools/grfmgr.hxx
@@ -33,9 +33,9 @@
 // AutoSwap defines
 
 #define GRFMGR_AUTOSWAPSTREAM_LINK      (reinterpret_cast<SvStream*>(0x00000000UL))
-#define GRFMGR_AUTOSWAPSTREAM_LOADED    (reinterpret_cast<SvStream*>(0xfffffffdUL))
-#define GRFMGR_AUTOSWAPSTREAM_TEMP      (reinterpret_cast<SvStream*>(0xfffffffeUL))
-#define GRFMGR_AUTOSWAPSTREAM_NONE      (reinterpret_cast<SvStream*>(0xffffffffUL))
+#define GRFMGR_AUTOSWAPSTREAM_LOADED reinterpret_cast<SvStream*>(sal_IntPtr(-3))
+#define GRFMGR_AUTOSWAPSTREAM_TEMP   reinterpret_cast<SvStream*>(sal_IntPtr(-2))
+#define GRFMGR_AUTOSWAPSTREAM_NONE   reinterpret_cast<SvStream*>(sal_IntPtr(-1))
 
 // Adjustment defines
 


More information about the Libreoffice-commits mailing list