vs2022的x64 compiler的话,下面前三种都有warning
vs2010这老古董不知道啥行为
char *t = new char[76800 * 2 * 49152];
unsigned int sz = 76800 * 2 * 49152;
char *a = new char[sz];
unsigned long long sz2 = 76800 * 2 * 49152;
char *a2 = new char[sz2];
unsigned long long sz3 = 76800 * 2 * 49152ull;
char *a3 = new char[sz3];
【 在 Bernstein 的大作中提到: 】
: 你这数组大小超过int范围越界了,要用int64_t
:
--
FROM 114.245.195.*