@@ -246,14 +246,14 @@ Py_ssize_t PyLong_AsNativeBytes(PyObject* v, void* buffer, Py_ssize_t n_bytes,
246246 static PyObject* as_memory (blst_p1_affine dst[],
247247 const blst::P1* const points[], size_t npoints)
248248 { blst_p1s_to_affine (dst, (const blst_p1 *const *)points, npoints);
249- return NULL ; // ignored by 'argout' typemap above
249+ return Py_None; // ignored by 'argout' typemap above
250250 }
251251}
252252%extend blst::P2_Affines {
253253 static PyObject* as_memory (blst_p2_affine dst[],
254254 const blst::P2* const points[], size_t npoints)
255255 { blst_p2s_to_affine (dst, (const blst_p2 *const *)points, npoints);
256- return NULL ; // ignored by 'argout' typemap above
256+ return Py_None; // ignored by 'argout' typemap above
257257 }
258258}
259259%nodefault blst::P1_Affines;
@@ -376,10 +376,10 @@ import java.nio.file.*;
376376 System.loadLibrary (" $module" );
377377 } catch (UnsatisfiedLinkError e) {
378378 String[] cmd = System.getProperty (" sun.java.command" ).split (" /" );
379- if (!" $imclassname" .equals (cmd[cmd.length -1 ]))
379+ if (!" $imclassname" .equals (cmd[cmd.length -1 ]))
380380 // suppress exception if 'main' below is executed
381381 throw new RuntimeException (e.getMessage ());
382- }
382+ }
383383 } else {
384384 // unpack shared library into a temporary directory and load it
385385 try {
0 commit comments