We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72b2023 commit 652c35fCopy full SHA for 652c35f
quaddtype/numpy_quaddtype/src/scalar.c
@@ -439,11 +439,11 @@ PyObject* quad_to_pylong(Sleef_quad value)
439
char buffer[128];
440
441
// Sleef_snprintf call is thread-unsafe
442
- // LOCK_SLEEF;
+ LOCK_SLEEF;
443
// Format as integer (%.0Qf gives integer with no decimal places)
444
// Q modifier means pass Sleef_quad by value
445
int written = Sleef_snprintf(buffer, sizeof(buffer), "%.0Qf", value);
446
- // UNLOCK_SLEEF;
+ UNLOCK_SLEEF;
447
if (written < 0 || written >= sizeof(buffer)) {
448
PyErr_SetString(PyExc_RuntimeError, "Failed to convert quad to string");
449
return NULL;
0 commit comments