From 09b153b85c9f6c75a6361ab2ecb0ed81e8920ff3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 5 May 2023 07:48:43 -0700 Subject: Don't bit_cast an array to a pointer --- alc/alconfig.cpp | 3 +-- 1 file changed, 1 insertion(+), 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 #include -#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(fileName)}; + f = al::ifstream{reinterpret_cast(fileName)}; if(f.is_open()) LoadConfigFromFile(f); } -- cgit v1.2.3