Skip to content

Commit c8cbfe1

Browse files
Apply suggestions from code review
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
1 parent 9b44ef3 commit c8cbfe1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/c/_cffi_backend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ static int PyWeakref_GetRef(PyObject *ref, PyObject **pobj)
288288
/* flags that are mutable at runtime, stored separately in ct_flags_mut to avoid
289289
races with ct_flags
290290
291-
these are read and set without using atomic operations because a lock is held
291+
these are read and set without using atomic operations because CFFI_LOCK is held
292292
while mutating ct_flags_mut
293293
*/
294294
#define CT_CUSTOM_FIELD_POS 0x00000001

src/c/realize_c_type.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static int init_global_types_dict(PyObject *ffi_type_dict)
7676
return err;
7777

7878
#ifdef Py_GIL_DISABLED
79-
// Ensure that all primitive types are intitalized to avoid race conditions
79+
// Ensure that all primitive types are initialised to avoid race conditions
8080
// on the first access.
8181
for (i = 0; i < _CFFI__NUM_PRIM; i++) {
8282
ct2 = get_primitive_type(i);

0 commit comments

Comments
 (0)