aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2023-03-27 09:30:29 +1100
committerNeil <nyamatongwe@gmail.com>2023-03-27 09:30:29 +1100
commit151d35356383d8c5f7d71b3536cdf2cdd8c4a6a3 (patch)
treebfe26fd53d7b29c97da0b6e2a2c77f2df88b74ec
parent765390e6db2b69976448e92d9a86516ead9b0c09 (diff)
downloadscintilla-mirror-151d35356383d8c5f7d71b3536cdf2cdd8c4a6a3.tar.gz
Declare noexcept as called from noexcept.
-rw-r--r--src/XPM.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XPM.cxx b/src/XPM.cxx
index 42c4dd96a..5c7d8fee0 100644
--- a/src/XPM.cxx
+++ b/src/XPM.cxx
@@ -266,7 +266,7 @@ void RGBAImage::SetPixel(int x, int y, ColourRGBA colour) noexcept {
namespace {
-unsigned char AlphaMultiplied(unsigned char value, unsigned char alpha) {
+constexpr unsigned char AlphaMultiplied(unsigned char value, unsigned char alpha) noexcept {
return (value * alpha / UCHAR_MAX) & 0xffU;
}