From e8d756c1b651039f1d529a7173c764bab3dbdbec Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Thu, 15 Jan 2015 19:48:03 -0500 Subject: [PATCH] fix FSMakeFSSpec --- toolbox/fs_spec.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolbox/fs_spec.cpp b/toolbox/fs_spec.cpp index 1e0ae16..2cc0f16 100644 --- a/toolbox/fs_spec.cpp +++ b/toolbox/fs_spec.cpp @@ -63,7 +63,7 @@ namespace OS { if (!insert) return -1; _pathQueue.emplace_back(FSSpecManager::Entry(path, hash)); - return _pathQueue.size(); + return _pathQueue.size() + RootPathID - 1; } int32_t FSSpecManager::IDForPath(std::string &&path, bool insert) @@ -96,7 +96,7 @@ namespace OS { if (!insert) return -1; _pathQueue.emplace_back(FSSpecManager::Entry(std::move(path), hash)); - return _pathQueue.size(); + return _pathQueue.size() + RootPathID - 1; }