Skip to content

Commit

Permalink
fix assertion error on AIX
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Nov 30, 2024
1 parent 38264a0 commit 6dafd9a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Objects/unicodeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -5022,13 +5022,13 @@ ctz(size_t v)
static size_t
load_unaligned(const unsigned char *p, size_t size)
{
assert(size <= SIZEOF_SIZE_T);
union {
size_t s;
unsigned char b[SIZEOF_SIZE_T];
} u;
u.s = 0;
switch (size) {
default:
case 8:
u.b[7] = p[7];
_Py_FALLTHROUGH;
Expand All @@ -5055,8 +5055,6 @@ load_unaligned(const unsigned char *p, size_t size)
break;
case 0:
break;
default:
Py_UNREACHABLE();
}
return u.s;
}
Expand Down

0 comments on commit 6dafd9a

Please sign in to comment.