aboutsummaryrefslogtreecommitdiff
path: root/python/python-axolotl-curve25519/901f4fb12e1290b72fbd26ea1f40755b079fa241.patch
blob: ff69ade1cf127d1664c9d69b555950be52470918 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 901f4fb12e1290b72fbd26ea1f40755b079fa241 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hanno=20B=C3=B6ck?= <hanno@gentoo.org>
Date: Fri, 2 Dec 2022 10:51:43 +0100
Subject: [PATCH] The 4th variable of PyModuleDef is an int, not a pointer:
 https://docs.python.org/3/c-api/module.html#c.PyModuleDef

Fixes compilation with clang.
---
 curve25519module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/curve25519module.c b/curve25519module.c
index f4bd3d7..cf8bb45 100644
--- a/curve25519module.c
+++ b/curve25519module.c
@@ -158,7 +158,7 @@ curve25519_functions[] = {
         PyModuleDef_HEAD_INIT,
         "axolotl_curve25519",
         NULL,
-        NULL,
+        0,
         curve25519_functions,
     };