mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 22:00:31 -04:00
src/pycryptopp/publickey/ecdsamodule.cpp:94:16: error: cannot initialize return object of type 'int' with an rvalue of type 'nullptr_t' return NULL; ^~~~ http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/py27-pycryptopp-0.7.1.869544967005693312591928092448767568728501330214.log
15 lines
717 B
C++
15 lines
717 B
C++
src/pycryptopp/publickey/ecdsamodule.cpp:94:16: error: cannot initialize return object of type 'int' with an rvalue of type 'nullptr_t'
|
|
return NULL;
|
|
^~~~
|
|
|
|
--- src/pycryptopp/publickey/ecdsamodule.cpp.orig 2018-08-28 13:11:32 UTC
|
|
+++ src/pycryptopp/publickey/ecdsamodule.cpp
|
|
@@ -91,7 +91,7 @@ VerifyingKey___init__(PyObject* self, PyObject* args,
|
|
Py_ssize_t serializedverifyingkeysize = 0;
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args, kwdict, "t#:VerifyingKey__init__", const_cast<char**>(kwlist), &serializedverifyingkey, &serializedverifyingkeysize))
|
|
- return NULL;
|
|
+ return 0;
|
|
assert (serializedverifyingkeysize >= 0);
|
|
|
|
if (serializedverifyingkeysize != 33) {
|