Skip to content

Commit dfc4b60

Browse files
committed
try to work around maybe-uninitialized warning
1 parent 6b67546 commit dfc4b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pythoncapi_compat_cext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@ test_long_api(PyObject *Py_UNUSED(module), PyObject *Py_UNUSED(args))
14361436
PyLongWriter_Discard(writer);
14371437

14381438
writer = PyLongWriter_Create(1, 1, (void**)&digits);
1439-
digits[0] = 123;
1439+
*digits = 123;
14401440
obj = PyLongWriter_Finish(writer);
14411441

14421442
check_int(obj, -123);

0 commit comments

Comments
 (0)