[Libreoffice-commits] .: liblangtag/liblangtag-0.4.0-windows.patch

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Nov 8 14:22:01 PST 2012


 liblangtag/liblangtag-0.4.0-windows.patch |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 45d196c0cc74a8c1ae702514d67ca09b3afb3d5d
Author: Eike Rathke <erack at redhat.com>
Date:   Thu Nov 8 23:11:44 2012 +0100

    corrected Windows lt_atomic_int_dec_and_test()
    
    check pre-decremented value for zero
    
    Change-Id: Ib2289cb6064941db2072b2dfbd6ad5f03bcff7aa

diff --git a/liblangtag/liblangtag-0.4.0-windows.patch b/liblangtag/liblangtag-0.4.0-windows.patch
index 1f07bd0..270f280 100644
--- a/liblangtag/liblangtag-0.4.0-windows.patch
+++ b/liblangtag/liblangtag-0.4.0-windows.patch
@@ -74,7 +74,7 @@
 +{
 +       lt_return_val_if_fail (v != NULL, FALSE);
 +
-+       return 1 == InterlockedExchangeAdd((LONG*)v, -1) - 1;
++       return 0 == (InterlockedExchangeAdd((LONG*)v, -1) - 1);
 +}
 +
 +


More information about the Libreoffice-commits mailing list