This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author swirsz
Recipients mark.dickinson, swirsz
Date 2022-01-07.16:00:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641571203.76.0.682214465884.issue46294@roundup.psfhosted.org>
In-reply-to
Content
Closing this report.  I investigated the remaining issue and it looks like a perfectly valid call to PyBool_FromLong:

/src/cpython3/Modules/_struct.c:509:28: runtime error: load of value 128, which is not a valid value for type '_Bool'

static PyObject *
nu_bool(_structmodulestate *state, const char *p, const formatdef *f)
{
    _Bool x;
    memcpy((char *)&x, p, sizeof x);
    return PyBool_FromLong(x != 0);
}
History
Date User Action Args
2022-01-07 16:00:03swirszsetrecipients: + swirsz, mark.dickinson
2022-01-07 16:00:03swirszsetmessageid: <1641571203.76.0.682214465884.issue46294@roundup.psfhosted.org>
2022-01-07 16:00:03swirszlinkissue46294 messages
2022-01-07 16:00:03swirszcreate