aboutsummaryrefslogtreecommitdiff
path: root/CPP/Common
diff options
context:
space:
mode:
authorIgor Pavlov <87184205+ip7z@users.noreply.github.com>2026-06-25 00:00:00 +0000
committerIgor Pavlov <87184205+ip7z@users.noreply.github.com>2026-06-26 11:00:29 +0500
commitf9d78aff31a5f2521ae7ddbdc97c4a8855808959 (patch)
treebf7e13577f75aa4c7c56af1153d6fa15c6052445 /CPP/Common
parent8c63d71ff886bda90c86db28466287f977374237 (diff)
download7zip-main.tar.gz
7zip-main.tar.bz2
7zip-main.zip
Diffstat (limited to 'CPP/Common')
-rw-r--r--CPP/Common/Common0.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/CPP/Common/Common0.h b/CPP/Common/Common0.h
index 5781a95..a6b842d 100644
--- a/CPP/Common/Common0.h
+++ b/CPP/Common/Common0.h
@@ -162,7 +162,7 @@ if compiled with new GCC libstdc++, GCC libstdc++ can use:
162 So we can use Z7_ARRAY_NEW macro instead of new[] operator. */ 162 So we can use Z7_ARRAY_NEW macro instead of new[] operator. */
163 163
164#if defined(_MSC_VER) && (_MSC_VER == 1200) && !defined(_WIN64) 164#if defined(_MSC_VER) && (_MSC_VER == 1200) && !defined(_WIN64)
165 #define Z7_ARRAY_NEW(p, T, size) p = new T[((size) > 0xFFFFFFFFu / sizeof(T)) ? 0xFFFFFFFFu / sizeof(T) : (size)]; 165 #define Z7_ARRAY_NEW(p, T, size) p = new T[((size) > (0xFFFFFFFFu - 0x7fu) / sizeof(T)) ? (0xFFFFFFFFu - 0x7fu) / sizeof(T) : (size)];
166#else 166#else
167 #define Z7_ARRAY_NEW(p, T, size) p = new T[size]; 167 #define Z7_ARRAY_NEW(p, T, size) p = new T[size];
168#endif 168#endif