gh-145633: Remove remnants of the "unknown_format" (floats) in the struct module (#146189)

This commit is contained in:
Sergey B Kirpichev 2026-03-25 09:23:44 +03:00 committed by GitHub
parent f4d1be46b4
commit f2fcc49467
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1536,10 +1536,6 @@ init_endian_tables(void *Py_UNUSED(arg))
size matches */
if (ptr->size != native->size)
break;
/* Skip float and double, could be
"unknown" float format */
if (ptr->format == 'd' || ptr->format == 'f')
break;
/* Skip _Bool, semantics are different for standard size */
if (ptr->format == '?')
break;