File fix_32bit_build.patch of Package ns3

From c9cf798e5f5cc9eea94cafa3bb720108662da18b Mon Sep 17 00:00:00 2001
From: Gabriel Ferreira <gabrielcarvfer@gmail.com>
Date: Wed, 11 May 2022 22:01:16 -0300
Subject: [PATCH] core: Fix int64x64-cairo.h bool operator

---
 src/core/model/int64x64-cairo.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/model/int64x64-cairo.h b/src/core/model/int64x64-cairo.h
index 3357b76dcc..07d8d8f84e 100644
--- a/src/core/model/int64x64-cairo.h
+++ b/src/core/model/int64x64-cairo.h
@@ -201,7 +201,7 @@ public:
   /** Explicit bool conversion. */
   inline explicit operator bool () const
   {
-    return (_v != 0);
+    return (_v.hi != 0 || _v.lo != 0);
   }
 
   /**
-- 
GitLab

openSUSE Build Service is sponsored by