summaryrefslogtreecommitdiff
path: root/Userland/Utilities/uniq.cpp
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-06-22 19:59:20 +0430
committerAndreas Kling <kling@serenityos.org>2021-06-23 19:04:08 +0200
commitc38fafbf4ed622271a6f8f7d5e271324417fed73 (patch)
treead18c5e7091e88a222710187e1e7661de30f8102 /Userland/Utilities/uniq.cpp
parent3b2a528b33e0579af9313856412757a35efc553a (diff)
downloadserenity-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