aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alconfig.cpp
diff options
context:
space:
mode:
authorFilip Gawin <[email protected]>2019-01-08 19:42:44 +0100
committerFilip Gawin <[email protected]>2019-01-08 19:42:44 +0100
commit0d3a0635d946ab1f43fd98cec4882248bc990846 (patch)
treef9cade218fe90b815bf1b529607fadd7bfa0f656 /Alc/alconfig.cpp
parent2a7f27ca58f9897be06fe815a46ea76a01734a0b (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.cpp4
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;
}