diff options
Diffstat (limited to 'src/OSSupport/File.cpp')
-rw-r--r-- | src/OSSupport/File.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OSSupport/File.cpp b/src/OSSupport/File.cpp index 8b91cc2a4..bb33dc732 100644 --- a/src/OSSupport/File.cpp +++ b/src/OSSupport/File.cpp @@ -285,7 +285,7 @@ int cFile::ReadRestOfFile(AString & a_Contents) // HACK: This depends on the internal knowledge that AString's data() function returns the internal buffer directly a_Contents.assign(DataSize, '\0'); - return Read(reinterpret_cast<void *>(const_cast<char *>(a_Contents.data())), DataSize); + return Read(static_cast<void *>(const_cast<char *>(a_Contents.data())), DataSize); } |