mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-10-22 07:21:21 +00:00
Use an explicit cast to std::string; fixes compilation with Sun Studio C compiler
This commit is contained in:
parent
46bfe1bb26
commit
a9a4bf9d35
@ -35,6 +35,7 @@
|
||||
\author Julien Coloos <suiryc @ users.sf.net>
|
||||
*/
|
||||
#include <cassert>
|
||||
#include <string>
|
||||
|
||||
#include "ebml/EbmlBinary.h"
|
||||
#include "ebml/StdIOCallback.h"
|
||||
@ -93,7 +94,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…
Reference in New Issue
Block a user