Use correct number type

This commit is contained in:
Love 2025-01-24 13:37:58 +01:00
parent 95c409ad95
commit 8b0447668b
2 changed files with 6 additions and 7 deletions

View File

@ -59,7 +59,7 @@ void pretty_format_page(std::string &content) {
} }
Page::Page(const uint_fast8_t number): m_number(number), m_subpage(fetchSubpage()) { Page::Page(const int number): m_number(number), m_subpage(fetchSubpage()) {
} }
Page Page::operator--(int) const { Page Page::operator--(int) const {

View File

@ -12,17 +12,16 @@
#include <string> #include <string>
#include <cstdint> #include <cstdint>
static constexpr uint_fast8_t DEFAULT_NUMBER = 100; static constexpr int DEFAULT_NUMBER = 100;
static constexpr uint_fast8_t MAX_WHITESPACE = 2; static constexpr int MAX_WHITESPACE = 2;
class Page class Page {
{
private: private:
uint_fast8_t m_number; int m_number;
std::string m_subpage; std::string m_subpage;
public: public:
explicit Page(uint_fast8_t number = DEFAULT_NUMBER); explicit Page(int number = DEFAULT_NUMBER);
Page operator--(int) const; Page operator--(int) const;