diff options
| author | Stefan Boberg <[email protected]> | 2021-09-27 13:12:37 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-27 13:12:37 +0200 |
| commit | 55e0ca966335fb87c136524197bfbb2346da37ac (patch) | |
| tree | e024bd8f92275e9680a962fa154fc9832ef8ecfa /zenhttp/httpsys.cpp | |
| parent | vschromium: exclude vcpkg_installed directory (diff) | |
| download | zen-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.cpp | 2 |
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)); } |