From 5ca1c098bc79b7c2e6e16235c722949faec856b3 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 8 Nov 2020 18:14:22 +0300 Subject: [PATCH 1/2] Remove useless check. --- telegram-bot-api/telegram-bot-api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telegram-bot-api/telegram-bot-api.cpp b/telegram-bot-api/telegram-bot-api.cpp index 9cd9d13..3502e21 100644 --- a/telegram-bot-api/telegram-bot-api.cpp +++ b/telegram-bot-api/telegram-bot-api.cpp @@ -192,8 +192,8 @@ int main(int argc, char *argv[]) { std::tie(rem, mod) = td::split(rem_mod, '/'); TRY_RESULT(rem_i, td::to_integer_safe(rem)); TRY_RESULT(mod_i, td::to_integer_safe(mod)); - if (rem_i < 0 || rem_i >= mod_i) { - return td::Status::Error("Wrong argument specified: ensure that 0 <= remainder < modulo"); + if (rem_i >= mod_i) { + return td::Status::Error("Wrong argument specified: ensure that remainder < modulo"); } token_range = {rem_i, mod_i}; return td::Status::OK(); From eafc9d2caa38813caccdf2d93a0fb9f026358009 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 8 Nov 2020 18:53:28 +0300 Subject: [PATCH 2/2] Add CentOS to build instructions generator. --- build.html | 28 ++++++++++++++++++++++++---- td | 2 +- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/build.html b/build.html index 82c4c38..5b81fe5 100644 --- a/build.html +++ b/build.html @@ -32,6 +32,8 @@ select.large { font-size: large; }