bpo-39689: Do not use native packing for format "?" with standard size (GH-18969)
(cherry picked from commit 472fc843ca
)
Co-authored-by: Stefan Krah <skrah@bytereef.org>
This commit is contained in:
parent
6a0ee60db4
commit
572ef74769
|
@ -2365,6 +2365,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