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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
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; |
|
|
|
|