glibc_versions.h: Work around MSVC error C4576 (#5919)

This commit is contained in:
Khairul Azhar Kasmiran 2026-02-14 23:37:33 +08:00 committed by GitHub
parent 236f933f31
commit 272c8d1015
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,7 +49,7 @@ typedef struct rz_glibc_chunk_layout_t {
} RzHeapChunkLayout;
static inline RzHeapChunkLayout rz_glibc_chunk_layout(ut8 ptr_size) {
return (RzHeapChunkLayout){
RzHeapChunkLayout layout = {
.prev_size = 0,
.size = ptr_size,
.fd = (ut32)(ptr_size * 2),
@ -58,6 +58,7 @@ static inline RzHeapChunkLayout rz_glibc_chunk_layout(ut8 ptr_size) {
.bk_nextsize = (ut32)(ptr_size * 5),
.struct_size = (ut32)(ptr_size * 6),
};
return layout;
}
typedef struct rz_glibc_malloc_state_layout_t {