From ab4e14bca410386b7db08948ae8fb66e05b39703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jason=20Mar=C3=A9chal?= <45510813+JasonMarechal25@users.noreply.github.com> Date: Wed, 4 Oct 2023 21:28:49 +0200 Subject: [PATCH] [Win] Increase file size limit when reading file (#1674) --- src/ext/yuni/src/yuni/io/file/file.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ext/yuni/src/yuni/io/file/file.h b/src/ext/yuni/src/yuni/io/file/file.h index 26c5081568..b966a88ee0 100644 --- a/src/ext/yuni/src/yuni/io/file/file.h +++ b/src/ext/yuni/src/yuni/io/file/file.h @@ -23,11 +23,8 @@ namespace IO namespace File { // constants -enum -{ - //! The maximum allowed size for a file in memory (Default: 80Go) - sizeHardLimit = 85899345920u, // 80Gb = 80 * 1024 * 1024 * 1024 -}; +//! The maximum allowed size for a file in memory (Default: 80Go) +constexpr unsigned long long sizeHardLimit = 85899345920u; // 80Go = 80 * 1024 * 1024 * 1024 /*! ** \brief Test if a node exists and is actually a file