diff options
author | Jan Beich <[email protected]> | 2024-04-01 20:18:18 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-04-01 21:18:18 +0100 |
commit | c377caee7abcd093fd09c386b20c32f291e86747 (patch) | |
tree | ea0aeb2d85b7be0b27beaf8ee42b5c5db697ed81 /src/hyprerror | |
parent | 3875679755014997776e091ff8903acfb311dd2f (diff) | |
download | Hyprland-c377caee7abcd093fd09c386b20c32f291e86747.tar.gz Hyprland-c377caee7abcd093fd09c386b20c32f291e86747.zip |
hyprerror: align 32-bit types after 4c796683c05a (#5375)
src/hyprerror/HyprError.cpp:64:33: error: no matching function for call to 'min'
const auto VISLINECOUNT = std::min(LINECOUNT, *LINELIMIT);
^~~~~~~~
/usr/include/c++/v1/__algorithm/min.h:40:1: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('int' vs. 'long long')
min(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/v1/__algorithm/min.h:51:1: note: candidate template ignored: could not match 'initializer_list<_Tp>' against 'int'
min(initializer_list<_Tp> __t, _Compare __comp)
^
/usr/include/c++/v1/__algorithm/min.h:60:1: note: candidate function template not viable: requires single argument '__t', but 2 arguments were provided
min(initializer_list<_Tp> __t)
^
/usr/include/c++/v1/__algorithm/min.h:31:1: note: candidate function template not viable: requires 3 arguments, but 2 were provided
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
Diffstat (limited to 'src/hyprerror')
-rw-r--r-- | src/hyprerror/HyprError.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hyprerror/HyprError.cpp b/src/hyprerror/HyprError.cpp index 73f9c5d5..de386097 100644 --- a/src/hyprerror/HyprError.cpp +++ b/src/hyprerror/HyprError.cpp @@ -58,7 +58,7 @@ void CHyprError::createQueued() { cairo_paint(CAIRO); cairo_restore(CAIRO); - const auto LINECOUNT = 1 + std::count(m_szQueued.begin(), m_szQueued.end(), '\n'); + const auto LINECOUNT = Hyprlang::INT{1} + std::count(m_szQueued.begin(), m_szQueued.end(), '\n'); static auto LINELIMIT = CConfigValue<Hyprlang::INT>("debug:error_limit"); const auto VISLINECOUNT = std::min(LINECOUNT, *LINELIMIT); |