Use correct number type
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										11
									
								
								src/Page.hpp
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								src/Page.hpp
									
									
									
									
									
								
							@@ -12,17 +12,16 @@
 | 
			
		||||
#include <string>
 | 
			
		||||
#include <cstdint>
 | 
			
		||||
 | 
			
		||||
static constexpr uint_fast8_t DEFAULT_NUMBER = 100;
 | 
			
		||||
static constexpr uint_fast8_t MAX_WHITESPACE = 2;
 | 
			
		||||
static constexpr int DEFAULT_NUMBER = 100;
 | 
			
		||||
static constexpr int MAX_WHITESPACE = 2;
 | 
			
		||||
 | 
			
		||||
class Page
 | 
			
		||||
{
 | 
			
		||||
class Page {
 | 
			
		||||
private:
 | 
			
		||||
    uint_fast8_t m_number;
 | 
			
		||||
    int m_number;
 | 
			
		||||
    std::string m_subpage;
 | 
			
		||||
 | 
			
		||||
public:
 | 
			
		||||
    explicit Page(uint_fast8_t number = DEFAULT_NUMBER);
 | 
			
		||||
    explicit Page(int number = DEFAULT_NUMBER);
 | 
			
		||||
 | 
			
		||||
    Page operator--(int) const;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user