bpo-39689: Do not use native packing for format "?" with standard size (GH-18969)

This commit is contained in:
Stefan Krah 2020-03-24 14:01:13 +01:00 committed by GitHub
parent 6000087fe9
commit 472fc843ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -2407,6 +2407,9 @@ PyInit__struct(void)
"unknown" float format */
if (ptr->format == 'd' || ptr->format == 'f')
break;
/* Skip _Bool, semantics are different for standard size */
if (ptr->format == '?')
break;
ptr->pack = native->pack;
ptr->unpack = native->unpack;
break;