]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-145633: Remove remnants of the "unknown_format" (floats) in the struct module...
authorSergey B Kirpichev <skirpichev@gmail.com>
Wed, 25 Mar 2026 06:23:44 +0000 (09:23 +0300)
committerGitHub <noreply@github.com>
Wed, 25 Mar 2026 06:23:44 +0000 (07:23 +0100)
Modules/_struct.c

index 1f1b44b2d4416594ab64047739796475293fd010..d6995895c2b9e3fab2dff145d3be0900b0095957 100644 (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;