Skip to content

Commit 05ba989

Browse files
encukoupicnixz
andauthored
Apply suggestions from code review
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent fcae66b commit 05ba989

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Modules/_ctypes/cfield.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,10 @@ Py_ssize_t NUM_BITS(Py_ssize_t bitsize) {
380380
assert(NUM_BITS(size_arg) || (size_arg == (NBITS) / 8)); \
381381
CTYPE val; \
382382
if (PyLong_Check(value) \
383-
&& PyUnstable_Long_IsCompact((PyLongObject *)value)) { \
383+
&& PyUnstable_Long_IsCompact((PyLongObject *)value)) \
384+
{ \
384385
val = (CTYPE)PyUnstable_Long_CompactValue( \
385-
(PyLongObject *)value); \
386+
(PyLongObject *)value); \
386387
} \
387388
else { \
388389
Py_ssize_t res = PyLong_AsNativeBytes( \
@@ -884,7 +885,7 @@ u_get(void *ptr, Py_ssize_t size)
884885
return PyUnicode_FromWideChar((wchar_t *)ptr, 1);
885886
}
886887

887-
/* U - a wchar_t* unicode string */
888+
/* U: a wchar_t* unicode string */
888889
static PyObject *
889890
U_get(void *ptr, Py_ssize_t size)
890891
{

0 commit comments

Comments
 (0)