diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-01-01 17:46:25 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-01 17:46:25 +0000 |
| commit | 4882eefaf892f4d0f8e418df398bee0c738221c5 (patch) | |
| tree | 515d65cf1ff445f88b5db398e379f70940a6d4af /src | |
| parent | 8a5c1b109d529d80a559147258e7d6b173ce52ad (diff) | |
| parent | 6ff81b6e4c1f9880d92ee5a2ccae241431afb6ee (diff) | |
Merge pull request #4616 from flga/master
make -export-dependencies emit valid json
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 4d85a9e72..0450c61ec 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2120,7 +2120,7 @@ gb_internal void export_dependencies(Checker *c) { for_array(i, files) { AstFile *file = files[i]; gb_fprintf(&f, "\t\t\"%.*s\"", LIT(file->fullpath)); - if (i+1 == files.count) { + if (i+1 < files.count) { gb_fprintf(&f, ","); } gb_fprintf(&f, "\n"); @@ -2133,7 +2133,7 @@ gb_internal void export_dependencies(Checker *c) { for_array(i, load_files) { LoadFileCache *cache = load_files[i]; gb_fprintf(&f, "\t\t\"%.*s\"", LIT(cache->path)); - if (i+1 == load_files.count) { + if (i+1 < load_files.count) { gb_fprintf(&f, ","); } gb_fprintf(&f, "\n"); |