Do more of line simplification with integer coordinates (#113)

* Turn off unit, which has bit-rotted

* Instrument line simplification

* Do more work in integer space

* Update tests with simplification done with more integers

* Clean up

* Update changelog

* Eradicate calls to deprecated sprintf()

* Revert "Turn off unit, which has bit-rotted"

This reverts commit 998779313f.

* Fix catch by switching to an unsigned type
This commit is contained in:
Erica Fischer
2023-07-10 15:54:21 -07:00
committed by GitHub
parent b09a880822
commit c1051232ad
59 changed files with 282 additions and 280 deletions
+1 -1
View File
@@ -481,7 +481,7 @@ static std::string quote(std::string const &s) {
buf.push_back(ch);
} else if (ch < ' ') {
char tmp[7];
sprintf(tmp, "\\u%04x", ch);
snprintf(tmp, sizeof(tmp), "\\u%04x", ch);
buf.append(std::string(tmp));
} else {
buf.push_back(ch);