summaryrefslogtreecommitdiff
path: root/xBRZ/src/xbrz_tools.h
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2023-10-28 08:29:29 -0400
committerB. Stack <bgstack15@gmail.com>2023-10-28 08:29:29 -0400
commitd30e0825ff61e9d8bae68cdfd2798da0badcf255 (patch)
treea55034c5f47324d2220e40639c6c632a895c5648 /xBRZ/src/xbrz_tools.h
parentadd upstream 13.0 (diff)
downloadFreeFileSync-d30e0825ff61e9d8bae68cdfd2798da0badcf255.tar.gz
FreeFileSync-d30e0825ff61e9d8bae68cdfd2798da0badcf255.tar.bz2
FreeFileSync-d30e0825ff61e9d8bae68cdfd2798da0badcf255.zip
add upstream 13.113.1
Diffstat (limited to 'xBRZ/src/xbrz_tools.h')
-rw-r--r--xBRZ/src/xbrz_tools.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xBRZ/src/xbrz_tools.h b/xBRZ/src/xbrz_tools.h
index 32e2090f..d83e5acc 100644
--- a/xBRZ/src/xbrz_tools.h
+++ b/xBRZ/src/xbrz_tools.h
@@ -108,7 +108,7 @@ inline
unsigned char demultiply(unsigned char c, unsigned char alpha)
{
return static_cast<unsigned char>(alpha == 0 ? 0 :
- std::clamp(uintDivRound(static_cast<unsigned int>(c) * 255, alpha), 0U, 255U));
+ std::min(uintDivRound(static_cast<unsigned int>(c) * 255, alpha), 255U));
}
bgstack15