aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpsys.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-27 13:12:37 +0200
committerStefan Boberg <[email protected]>2021-09-27 13:12:37 +0200
commit55e0ca966335fb87c136524197bfbb2346da37ac (patch)
treee024bd8f92275e9680a962fa154fc9832ef8ecfa /zenhttp/httpsys.cpp
parentvschromium: exclude vcpkg_installed directory (diff)
downloadzen-55e0ca966335fb87c136524197bfbb2346da37ac.tar.xz
zen-55e0ca966335fb87c136524197bfbb2346da37ac.zip
httpsys: added `if constexpr` to silence compiler warning on Windows
Diffstat (limited to 'zenhttp/httpsys.cpp')
-rw-r--r--zenhttp/httpsys.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp
index 26bba5484..747e48bb3 100644
--- a/zenhttp/httpsys.cpp
+++ b/zenhttp/httpsys.cpp
@@ -42,7 +42,7 @@ UTF8_to_wstring(const char* in)
if (((*in & 0xc0) != 0x80) && (codepoint <= 0x10ffff))
{
- if (sizeof(wchar_t) > 2)
+ if constexpr (sizeof(wchar_t) > 2)
{
out.append(1, static_cast<wchar_t>(codepoint));
}