Browse Source

TGAImporter: just-to-be-safe static_assert for header size

pull/34/head
Vladimír Vondruš 15 years ago
parent
commit
95082834a4
  1. 2
      src/Plugins/TGAImporter/TGAImporter.cpp

2
src/Plugins/TGAImporter/TGAImporter.cpp

@ -26,6 +26,8 @@ PLUGIN_REGISTER(Magnum::Plugins::TGAImporter::TGAImporter, "cz.mosra.magnum.Abst
namespace Magnum { namespace Plugins { namespace TGAImporter {
static_assert(sizeof(TGAImporter::Header) == 18, "TGAImporter: header size is not 18 bytes");
bool TGAImporter::open(std::istream& in) {
if(_image) close();
if(!in.good()) return false;

Loading…
Cancel
Save