diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-06-22 19:59:20 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-23 19:04:08 +0200 |
commit | c38fafbf4ed622271a6f8f7d5e271324417fed73 (patch) | |
tree | ad18c5e7091e88a222710187e1e7661de30f8102 /Userland/Utilities/uniq.cpp | |
parent | 3b2a528b33e0579af9313856412757a35efc553a (diff) | |
download | serenity-c38fafbf4ed622271a6f8f7d5e271324417fed73.zip |
AK: Make {min,max,clamp}(T, U) work when U can be implicitly cast to T
It was really annoying to `static_cast` the arguments to be the same
type, so instead of doing that, just convert the second one to the first
one, and let the compiler warn about sign differences and truncation.
Diffstat (limited to 'Userland/Utilities/uniq.cpp')
0 files changed, 0 insertions, 0 deletions