diff options
author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2022-06-20 00:00:00 +0000 |
---|---|---|
committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2023-12-17 13:35:20 +0500 |
commit | a3e1d227377188734b82f023f96f8e25dc40f3e6 (patch) | |
tree | 23cad8d47eb23d26ea727b4f7f4a65124f724065 /CPP/Common/Common.h | |
parent | f19f813537c7aea1c20749c914e756b54a9c3cf5 (diff) | |
download | 7zip-22.00.tar.gz 7zip-22.00.tar.bz2 7zip-22.00.zip |
22.0022.00
Diffstat (limited to 'CPP/Common/Common.h')
-rw-r--r-- | CPP/Common/Common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CPP/Common/Common.h b/CPP/Common/Common.h index 8dac613..72db7a8 100644 --- a/CPP/Common/Common.h +++ b/CPP/Common/Common.h | |||
@@ -35,7 +35,7 @@ you can change this h file or h files included in this file. | |||
35 | So we can use MY_ARRAY_NEW macro instead of new[] operator. */ | 35 | So we can use MY_ARRAY_NEW macro instead of new[] operator. */ |
36 | 36 | ||
37 | #if defined(_MSC_VER) && (_MSC_VER == 1200) && !defined(_WIN64) | 37 | #if defined(_MSC_VER) && (_MSC_VER == 1200) && !defined(_WIN64) |
38 | #define MY_ARRAY_NEW(p, T, size) p = new T[(size > (unsigned)0xFFFFFFFF / sizeof(T)) ? (unsigned)0xFFFFFFFF / sizeof(T) : size]; | 38 | #define MY_ARRAY_NEW(p, T, size) p = new T[((size) > (unsigned)0xFFFFFFFF / sizeof(T)) ? (unsigned)0xFFFFFFFF / sizeof(T) : (size)]; |
39 | #else | 39 | #else |
40 | #define MY_ARRAY_NEW(p, T, size) p = new T[size]; | 40 | #define MY_ARRAY_NEW(p, T, size) p = new T[size]; |
41 | #endif | 41 | #endif |