mirror of
https://github.com/glest/glest-source.git
synced 2025-08-15 04:43:58 +02:00
- cleaned up some warnings from VC++ compiler
This commit is contained in:
@@ -2166,9 +2166,9 @@ string getFileTextContents(string path) {
|
||||
|
||||
// Load data and add terminating 0
|
||||
vector<char> buffer;
|
||||
buffer.resize(size + (streampos)1);
|
||||
buffer.resize((unsigned int)size + 1);
|
||||
xmlFile.read(&buffer.front(), static_cast<streamsize>(size));
|
||||
buffer[size] = 0;
|
||||
buffer[(unsigned int)size] = 0;
|
||||
|
||||
return &buffer.front();
|
||||
}
|
||||
|
Reference in New Issue
Block a user