Fixed a stoll bug that was there since day one, html parser, fix pkgconfig

This commit is contained in:
2026-09-22 11:09:50 -05:00
parent 5b54af1728
commit dbeae862c5
21 changed files with 1016 additions and 80 deletions
+4 -3
View File
@@ -39,7 +39,7 @@ int main(int argc, char **argv) {
Args args(argc, argv);
if (args.positional.size() < 2)
usage(args);
int64_t num;
for (auto &opt : args.options) {
if (opt.first == "tracker")
trackers.push_back(opt.second);
@@ -49,8 +49,9 @@ int main(int argc, char **argv) {
comment = opt.second;
else if (opt.first == "created_by")
created_by = opt.second;
else if (opt.first == "piece_length")
pieceLength = std::stoll(opt.second);
else if (opt.first == "piece_length" &&
Serialization::BitConverter::TryParseSigned(opt.second, num))
pieceLength = num;
}
for (auto &flag : args.flags) {