lightning
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lightning] [PATCH v2] Fix 9 tests on Windows x64, due to size of lo


From: Zachary Cook
Subject: Re: [Lightning] [PATCH v2] Fix 9 tests on Windows x64, due to size of long
Date: Thu, 3 Oct 2019 16:00:15 -0400

Here is the test log: https://gist.github.com/ZachCook/c44142ee7c4b88ec319f0abb769c1e95 

This is running using a custom implementation of sys/mman, so that very well could be the main issue, any hints as to what is broken would be helpful

On Thu, Oct 3, 2019 at 3:45 PM Zachary Cook <address@hidden> wrote:
---
 check/ccall.c     | 4 ++++
 check/lightning.c | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/check/ccall.c b/check/ccall.c
index e454a32..7e15674 100644
--- a/check/ccall.c
+++ b/check/ccall.c
@@ -142,8 +142,12 @@ typedef unsigned short             _us;
 typedef signed int             _i;
 #if __WORDSIZE == 64
 typedef unsigned int           _ui;
+#if (__WIN32 && !__CYGWIN__)
+typedef signed long long       _l;
+#else
 typedef signed long            _l;
 #endif
+#endif
 typedef float                  _f;
 typedef double                 _d;

diff --git a/check/lightning.c b/check/lightning.c
index 8df033a..b9cf431 100644
--- a/check/lightning.c
+++ b/check/lightning.c
@@ -74,6 +74,10 @@ static void                  *DL_HANDLE;
 #define PARSING_CODE           2
 #define MAX_IDENTIFIER         256

+#if __WORDSIZE == 64 && (__WIN32 && !__CYGWIN__)
+#define long                   long long
+#endif
+
 /*
  * Types
  */
--
2.23.0


reply via email to

[Prev in Thread] Current Thread [Next in Thread]