You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/vblankmanager.cpp:285:18: error: no matching function for call to 'max'
sleepyTime = std::max( sleepyTime, 0l );
^~~~~~~~
/usr/include/c++/v1/algorithm:2633:1: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('long long' vs. 'long')
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/v1/algorithm:2644:1: note: candidate template ignored: could not match 'initializer_list<type-parameter-0-0>' against 'long long'
max(initializer_list<_Tp> __t, _Compare __comp)
^
/usr/include/c++/v1/algorithm:2653:1: note: candidate function template not viable: requires single argument '__t', but 2 arguments were provided
max(initializer_list<_Tp> __t)
^
/usr/include/c++/v1/algorithm:2624:1: note: candidate function template not viable: requires 3 arguments, but 2 were provided
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
Replacing 0l with 0ll helps but breaks 64-bit systems instead. Maybe it should use std::max<int64_t>(...), static_cast<int64_t>(0) or similar where int64_t can probably be replaced by decltype(sleepyTime).
The text was updated successfully, but these errors were encountered:
Regressed by f156763. From error log:
Replacing
0l
with0ll
helps but breaks 64-bit systems instead. Maybe it should usestd::max<int64_t>(...)
,static_cast<int64_t>(0)
or similar whereint64_t
can probably be replaced bydecltype(sleepyTime)
.The text was updated successfully, but these errors were encountered: