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:
parent
6e8b3c82ba
commit
d70416282f
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user