From 88751694a59a3c62769ea12c43a67278b82d8a19 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 2 Aug 2019 13:36:59 +0200 Subject: [PATCH] Changed uint_fast8_t to uint8_t. The *fast* types are shit. --- CMakeLists.txt | 2 +- include/xdgcfg.hpp | 4 ++-- src/xdgcfg.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9970dbc..3028fc1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ if(${CMAKE_VERSION} VERSION_LESS 3.12) endif() project(xdgcfg - VERSION 0.4.1 + VERSION 0.5.0 LANGUAGES CXX ) # DESCRIPTION was introduced in version 3.9. diff --git a/include/xdgcfg.hpp b/include/xdgcfg.hpp index 29a048c..a927284 100644 --- a/include/xdgcfg.hpp +++ b/include/xdgcfg.hpp @@ -21,7 +21,7 @@ namespace fs = std::experimental::filesystem; #endif using std::string; -using std::uint_fast8_t; +using std::uint8_t; using std::cerr; using std::endl; @@ -46,7 +46,7 @@ public: * * @return 0 on success, 1 on I/O error, 2 on parse error. */ - uint_fast8_t read(); + uint8_t read(); /*! * @brief Write the file diff --git a/src/xdgcfg.cpp b/src/xdgcfg.cpp index 98b1009..8700232 100644 --- a/src/xdgcfg.cpp +++ b/src/xdgcfg.cpp @@ -25,7 +25,7 @@ xdgcfg::xdgcfg(const string &filename, const string &subdir) _filepath /= filename; } -uint_fast8_t xdgcfg::read() +uint8_t xdgcfg::read() { try {