Use an explicit cast to std::string; fixes compilation with Sun Studio C compiler

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@670 a6f86f6d-0131-4f8e-9e7b-e335508773d5
This commit is contained in:
Moritz Bunkus 2011-02-05 21:11:28 +00:00
parent 6e8b3c82ba
commit d70416282f

View File

@ -93,7 +93,7 @@ filepos_t EbmlBinary::ReadData(IOCallback & input, ScopeMode ReadFully)
Data = (binary *)malloc(GetSize() * sizeof(binary));
if (Data == NULL)
throw CRTError("Error allocating data");
throw CRTError(std::string("Error allocating data"));
SetValueIsSet();
return input.read(Data, GetSize());
}