Browse Source

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

pull/19135/head
Stefan Krah 6 years ago
committed by GitHub
parent
commit
472fc843ca
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      Modules/_struct.c

3
Modules/_struct.c

@ -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…
Cancel
Save