aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alconfig.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-05-05 07:48:43 -0700
committerChris Robinson <[email protected]>2023-05-05 07:48:43 -0700
commit09b153b85c9f6c75a6361ab2ecb0ed81e8920ff3 (patch)
tree29fdfbdad89ca5fcafd64b7c9b299b98831c4ace /alc/alconfig.cpp
parent3ec03cadd2b5059e54e5e9b8f4d506b4c6ce727d (diff)
Don't bit_cast an array to a pointer
Diffstat (limited to 'alc/alconfig.cpp')
-rw-r--r--alc/alconfig.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/alc/alconfig.cpp b/alc/alconfig.cpp
index ceb7d97b..56cad9e0 100644
--- a/alc/alconfig.cpp
+++ b/alc/alconfig.cpp
@@ -38,7 +38,6 @@
#include <string>
#include <utility>
-#include "albit.h"
#include "alfstream.h"
#include "alstring.h"
#include "core/helpers.h"
@@ -419,7 +418,7 @@ void ReadALConfig()
if((configURL=CFBundleCopyResourceURL(mainBundle, CFSTR(".alsoftrc"), CFSTR(""), nullptr)) &&
CFURLGetFileSystemRepresentation(configURL, true, fileName, sizeof(fileName)))
{
- f = al::ifstream{al::bit_cast<char*>(fileName)};
+ f = al::ifstream{reinterpret_cast<char*>(fileName)};
if(f.is_open())
LoadConfigFromFile(f);
}