diff options
author | Filip Gawin <[email protected]> | 2019-01-08 19:42:44 +0100 |
---|---|---|
committer | Filip Gawin <[email protected]> | 2019-01-08 19:42:44 +0100 |
commit | 0d3a0635d946ab1f43fd98cec4882248bc990846 (patch) | |
tree | f9cade218fe90b815bf1b529607fadd7bfa0f656 /Alc/alconfig.cpp | |
parent | 2a7f27ca58f9897be06fe815a46ea76a01734a0b (diff) |
Avoid using old style casts
To think about:
examples/alffplay.cpp:600
OpenAL32/Include/alMain.h:295
Diffstat (limited to 'Alc/alconfig.cpp')
-rw-r--r-- | Alc/alconfig.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alconfig.cpp b/Alc/alconfig.cpp index eecaf6fc..c4fde638 100644 --- a/Alc/alconfig.cpp +++ b/Alc/alconfig.cpp @@ -93,7 +93,7 @@ std:: string expdup(const char *str) { const char *next = std::strchr(str, '$'); addstr = str; - addstrlen = next ? (size_t)(next-str) : std::strlen(str); + addstrlen = next ? static_cast<size_t>(next-str) : std::strlen(str); str += addstrlen; } @@ -104,7 +104,7 @@ std:: string expdup(const char *str) { const char *next = std::strchr(str+1, '$'); addstr = str; - addstrlen = next ? (size_t)(next-str) : std::strlen(str); + addstrlen = next ? static_cast<size_t>(next-str) : std::strlen(str); str += addstrlen; } |