1. python_mirrors
  2. cpython

Commits

Larry Hastings  committed efb30bd Draft

Issue #15589: Ensure double-alignment for brute-force capi argument parser test
that occasionally uses doubles.

  • Participants
  • Parent commits 85266c6
  • Branches default

Comments (0)

Files changed (1)

File Modules/_testcapimodule.c

View file
     int result;
     PyObject *return_value = NULL;
 
-    char buffers[32][8];
+    double buffers[8][4]; /* double ensures alignment where necessary */
 
     if (!PyArg_ParseTuple(args, "OOyO:parse_tuple_and_keywords",
         &sub_args, &sub_kwargs,