diff options
| author | gingerBill <bill@gingerbill.org> | 2021-11-15 17:26:01 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-11-15 17:26:01 +0000 |
| commit | e814a3693f9efbdd00113de4dd5937acd97bc486 (patch) | |
| tree | ff0534f9609fb8b5726c0933027db9963bb469e4 /src/docs_writer.cpp | |
| parent | f55fc4cd08dba25730fa1c74d31611cf27ef2155 (diff) | |
Improve usage of `file_id`
Diffstat (limited to 'src/docs_writer.cpp')
| -rw-r--r-- | src/docs_writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/docs_writer.cpp b/src/docs_writer.cpp index e7254e16b..430e26782 100644 --- a/src/docs_writer.cpp +++ b/src/docs_writer.cpp @@ -257,7 +257,7 @@ OdinDocArray<T> odin_write_item_as_slice(OdinDocWriter *w, T data) { OdinDocPosition odin_doc_token_pos_cast(OdinDocWriter *w, TokenPos const &pos) { OdinDocFileIndex file_index = 0; if (pos.file_id != 0) { - AstFile *file = get_ast_file_from_id(pos.file_id); + AstFile *file = global_files[pos.file_id]; if (file != nullptr) { OdinDocFileIndex *file_index_found = map_get(&w->file_cache, file); GB_ASSERT(file_index_found != nullptr); |