bpo-39689: Do not use native packing for format "?" with standard size (GH-18969)
This commit is contained in:
parent
6000087fe9
commit
472fc843ca
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue