1
0
Fork 0

Removed an unneeded cast.

This commit is contained in:
madmaxoft 2014-08-15 07:19:13 +02:00
parent 36e918ce9b
commit 1f4a1383c2
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ int cFile::ReadRestOfFile(AString & a_Contents)
size_t DataSize = GetSize() - Tell();
// HACK: This depends on the internal knowledge that AString's data() function returns the internal buffer directly
a_Contents.assign((size_t)DataSize, '\0');
a_Contents.assign(DataSize, '\0');
return Read((void *)a_Contents.data(), DataSize);
}