Skip to content

Commit

Permalink
properly skip unknown languages in pgf_write_pgf
Browse files Browse the repository at this point in the history
  • Loading branch information
krangelov committed Mar 14, 2024
1 parent 280e11c commit a8c5a4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/runtime/c/pgf/writer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,10 @@ void PgfWriter::write_pgf(ref<PgfPGF> pgf)
size_t len = 0;
PgfText** p = langs;
while (*p) {
len++; p++;
if (namespace_lookup(pgf->concretes, *p) != 0) {
len++;
}
p++;
}
write_len(len);
}
Expand Down

0 comments on commit a8c5a4f

Please sign in to comment.