diff options
Diffstat (limited to 'tools/preproc/c_file.cpp')
-rw-r--r-- | tools/preproc/c_file.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/preproc/c_file.cpp b/tools/preproc/c_file.cpp index 3b4024efe..a2f178623 100644 --- a/tools/preproc/c_file.cpp +++ b/tools/preproc/c_file.cpp @@ -256,7 +256,7 @@ std::unique_ptr<unsigned char[]> CFile::ReadWholeFile(const std::string& path, i size = ftell(fp); - std::unique_ptr<unsigned char[]> buffer = std::make_unique<unsigned char[]>(size); + std::unique_ptr<unsigned char[]> buffer = std::unique_ptr<unsigned char[]>(new unsigned char[size]); rewind(fp); |