diff options
Diffstat (limited to 'src/cms/cms_dec.cpp')
-rw-r--r-- | src/cms/cms_dec.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cms/cms_dec.cpp b/src/cms/cms_dec.cpp index c86e1d0ae..a9f4e69d9 100644 --- a/src/cms/cms_dec.cpp +++ b/src/cms/cms_dec.cpp @@ -86,7 +86,9 @@ std::string CMS_Decoder::get_data() const { if(layer_type() != DATA) throw Invalid_State("CMS: Cannot retrieve data from non-DATA layer"); - return std::string((const char*)&data[0], data.size()); + + return std::string(reinterpret_cast<const char*>(&data[0]), + data.size()); } /* |