Skip to content

Commit

Permalink
Update Modules/_struct.c
Browse files Browse the repository at this point in the history
Co-authored-by: Petr Viktorin <[email protected]>
  • Loading branch information
skirpichev and encukou authored Oct 9, 2024
1 parent 02976e7 commit 78291e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_struct.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ nu_ulonglong(_structmodulestate *state, const char *p, const formatdef *f)
static PyObject *
nu_bool(_structmodulestate *state, const char *p, const formatdef *f)
{
const _Bool bool_false = false;
const _Bool bool_false = 0;
return PyBool_FromLong(memcmp(p, &bool_false, sizeof(_Bool)));
}

Expand Down

0 comments on commit 78291e4

Please sign in to comment.