From 1254c110f09ecf6d1985e6fd65864367a9831e17 Mon Sep 17 00:00:00 2001 From: ciscon Date: Fri, 10 May 2024 13:42:13 -0400 Subject: [PATCH] BUG: use uint64 for holding the size of a directory, otherwise we overflow on larger directories and never clean things up. this is related to issue #135 --- src/sys.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/sys.h b/src/sys.h index ce950cd1..9876d9d5 100644 --- a/src/sys.h +++ b/src/sys.h @@ -40,17 +40,17 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. typedef struct { char name[MAX_DEMO_NAME]; - int size; - int time; + size_t size; + size_t time; qbool isdir; //bliP: list dir } file_t; typedef struct { - file_t *files; - int size; - int numfiles; - int numdirs; + file_t *files; + uint_least64_t size; + size_t numfiles; + size_t numdirs; } dir_t; int Sys_FileTime (const char *path);