From 27995745e46d4dafd4b3194da9289b59a6d50e0e Mon Sep 17 00:00:00 2001 From: utox39 Date: Mon, 25 Aug 2025 02:09:52 +0200 Subject: [PATCH] refactor(macos-gpu): use the new cfTypeRefToZigString function instead of the old cfStringToZigString --- src/macos/hardware.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macos/hardware.zig b/src/macos/hardware.zig index 2d0fd82..1a82d94 100644 --- a/src/macos/hardware.zig +++ b/src/macos/hardware.zig @@ -236,7 +236,7 @@ pub fn getGpuInfo(allocator: std.mem.Allocator) !GpuInfo { if (c_iokit.CFDictionaryGetValueIfPresent(@as(c_iokit.CFDictionaryRef, @ptrCast(properties_ptr)), model_key, &name_ref) == c_iokit.TRUE) { if (c_iokit.CFGetTypeID(name_ref) == c_iokit.CFStringGetTypeID()) { - const accel_name = utils.cfStringToZigString(allocator, @as(c_iokit.CFStringRef, @ptrCast(name_ref))) catch { + const accel_name = utils.cfTypeRefToZigString(allocator, name_ref) catch { return gpu_info; };