aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/coreaudio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/backends/coreaudio.cpp')
-rw-r--r--alc/backends/coreaudio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/backends/coreaudio.cpp b/alc/backends/coreaudio.cpp
index 01a81f06..4e71a674 100644
--- a/alc/backends/coreaudio.cpp
+++ b/alc/backends/coreaudio.cpp
@@ -97,9 +97,9 @@ std::string GetDeviceName(AudioDeviceID devId)
sizeof(nameRef), &nameRef)};
if(err == noErr)
{
- UInt32 propSize{CFStringGetMaximumSizeForEncoding(CFStringGetLength(nameRef),
+ const CFIndex propSize{CFStringGetMaximumSizeForEncoding(CFStringGetLength(nameRef),
kCFStringEncodingUTF8)};
- devname.resize(propSize+1, '\0');
+ devname.resize(static_cast<size_t>(propSize)+1, '\0');
CFStringGetCString(nameRef, &devname[0], propSize+1, kCFStringEncodingUTF8);
CFRelease(nameRef);