mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-24 00:06:00 +01:00
hyprerror: align 32-bit types after 4c796683c0
(#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) ^
This commit is contained in:
parent
3875679755
commit
02717bf8d1
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ void CHyprError::createQueued() {
|
||||||
cairo_paint(CAIRO);
|
cairo_paint(CAIRO);
|
||||||
cairo_restore(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");
|
static auto LINELIMIT = CConfigValue<Hyprlang::INT>("debug:error_limit");
|
||||||
|
|
||||||
const auto VISLINECOUNT = std::min(LINECOUNT, *LINELIMIT);
|
const auto VISLINECOUNT = std::min(LINECOUNT, *LINELIMIT);
|
||||||
|
|
Loading…
Reference in a new issue