This commit is contained in:
Sebastian Messmer 2015-07-20 17:56:20 +02:00
parent 67c56648e3
commit 43d8174fd4
2 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,7 @@ void DirBlob::_writeEntriesToBlob() {
_blob->resize(1);
unsigned int offset = 1;
for (const auto &entry : _entries) {
unsigned char entryTypeMagicNumber = static_cast<unsigned char>(entry.type);
uint8_t entryTypeMagicNumber = static_cast<uint8_t>(entry.type);
_blob->write(&entryTypeMagicNumber, offset, 1);
offset += 1;
_blob->write(entry.name.c_str(), offset, entry.name.size() + 1);

View File

@ -4,6 +4,7 @@
namespace cryfs {
//TODO enum class
enum MagicNumbers {
DIR = 0x00,
FILE = 0x01,