Reordered struct for better memory alignment

This commit is contained in:
Pedro Portela 2025-06-05 20:51:56 +02:00
parent 7e630e3e68
commit 85ee7ee10d

View File

@ -3,10 +3,10 @@
struct img_png_chunk {
uint32_t length;
char chunk_type[4];
char* chunk_data;
uint32_t length;
uint32_t crc;
char chunk_type[4];
};
uint8_t* img_png_decode (FILE* fp);