25 lines
733 B
Diff
25 lines
733 B
Diff
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,
|
|
};
|
|
|