Skip to content

Commit a369ef4

Browse files
authored
fix offset handling in check command (#689)
1 parent c51a394 commit a369ef4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cmd/commands.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,14 @@ void Commands::check(const std::string& path) {
199199
uid = UID(Comments::getSequenceIdFromProgram(program));
200200
}
201201
auto seq = ManagedSequence(uid);
202-
std::map<UID, int64_t> offsets;
202+
std::map<UID, std::string> offsets;
203203
bool has_offset = false;
204204
const auto offsets_path =
205205
SequenceUtil::getSeqsFolder(uid.domain()) + "offsets";
206-
if (SequenceList::loadMap(offsets_path, offsets)) {
206+
if (SequenceList::loadMapWithComments(offsets_path, offsets)) {
207207
auto it = offsets.find(uid);
208208
if (it != offsets.end()) {
209-
seq.offset = it->second;
209+
seq.offset = std::stoll(it->second);
210210
has_offset = true;
211211
}
212212
}

0 commit comments

Comments
 (0)