diff --git a/src/ox/fs/filesystem.cpp b/src/ox/fs/filesystem.cpp index b6f9b94ff..6a2535fb1 100644 --- a/src/ox/fs/filesystem.cpp +++ b/src/ox/fs/filesystem.cpp @@ -16,7 +16,7 @@ FileSystem *createFileSystem(uint8_t *buff, size_t buffSize, bool ownsBuff) { FileSystem *fs = nullptr; switch (version) { - case 6: + case FileStore16::VERSION: switch (type) { case ox::OxFS_16: fs = new FileSystem16(buff, ownsBuff); diff --git a/src/ox/fs/filesystem.hpp b/src/ox/fs/filesystem.hpp index 1092195e6..c63769d27 100644 --- a/src/ox/fs/filesystem.hpp +++ b/src/ox/fs/filesystem.hpp @@ -719,7 +719,7 @@ uint64_t FileSystemTemplate::generateInodeId() { // find an inode value for the given path while (!inode) { inode = rand.gen(); - inode >>= 64 - 8 * sizeof(typename FileStore::InodeId_t); + inode >>= 64 - 8 * sizeof(typename FileStore::InodeId_t); // make sure this does not already exist if (inode < INODE_RESERVED_END || stat(inode).inode) {