aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2021-07-19 16:22:39 +0200
committerGitHub <noreply@github.com>2021-07-19 16:22:39 +0200
commit57b8969a3d30cfdefe54fc46f4d5552d76bd1b82 (patch)
treeb29bd40c708c0428a1ccb4cd980e9c0fe6f4391d /src
parent0adcd28450d026c9dc090468c115be2687f08ba0 (diff)
Fix setting of flow risks on 32 bit machines (#1251)
Since 19a29e1e (NDPI_TLS_CERT_VALIDITY_TOO_LONG is 32), unit tests are failing on 32 bit machines (i.e Raspberry 4)
Diffstat (limited to 'src')
-rw-r--r--src/include/ndpi_define.h.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/ndpi_define.h.in b/src/include/ndpi_define.h.in
index 6f4a4ee38..dd4b6dea6 100644
--- a/src/include/ndpi_define.h.in
+++ b/src/include/ndpi_define.h.in
@@ -282,10 +282,10 @@
#define NDPI_BITMASK_SET_ALL(a) NDPI_ONE(&a)
#define NDPI_BITMASK_SET(a, b) { memcpy(&a, &b, sizeof(NDPI_PROTOCOL_BITMASK)); }
-#define NDPI_SET_BIT(num, n) num |= 1UL << ( n )
-#define NDPI_CLR_BIT(num, n) num &= ~(1UL << ( n ))
-#define NDPI_CLR_BIT(num, n) num &= ~(1UL << ( n ))
-#define NDPI_ISSET_BIT(num, n) (num & (1UL << ( n )))
+#define NDPI_SET_BIT(num, n) num |= 1ULL << ( n )
+#define NDPI_CLR_BIT(num, n) num &= ~(1ULL << ( n ))
+#define NDPI_CLR_BIT(num, n) num &= ~(1ULL << ( n ))
+#define NDPI_ISSET_BIT(num, n) (num & (1ULL << ( n )))
#define NDPI_ZERO_BIT(num) num = 0
/* this is a very very tricky macro *g*,