From 26404315cbad05e41124f981ec96c48d79b0783b Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 11 Mar 2021 21:46:00 +0300 Subject: [PATCH] engine: filesystem: avoid unnecessary padding in private structs --- engine/common/filesystem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/common/filesystem.c b/engine/common/filesystem.c index 6bfc8beb..2d406fdc 100644 --- a/engine/common/filesystem.c +++ b/engine/common/filesystem.c @@ -81,10 +81,10 @@ typedef struct wadtype_s struct file_s { int handle; // file descriptor + int ungetc; // single stored character from ungetc, cleared to EOF when read fs_offset_t real_length; // uncompressed file size (for files opened in "read" mode) fs_offset_t position; // current position in the file fs_offset_t offset; // offset into the package (0 if external file) - int ungetc; // single stored character from ungetc, cleared to EOF when read time_t filetime; // pak, wad or real filetime // contents buffer fs_offset_t buff_ind, buff_len; // buffer current index and length @@ -100,8 +100,8 @@ struct wfile_s { string filename; int infotableofs; - byte *mempool; // W_ReadLump temp buffers int numlumps; + byte *mempool; // W_ReadLump temp buffers file_t *handle; dlumpinfo_t *lumps; time_t filetime;