From de06d294fa7572aa7d74c2ca43ce26f352fa4b14 Mon Sep 17 00:00:00 2001 From: Alec Miller Date: Fri, 15 Mar 2024 00:01:06 -0700 Subject: [PATCH] kram - fix zip helper --- kram-profile/Source/KramZipHelperW.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kram-profile/Source/KramZipHelperW.mm b/kram-profile/Source/KramZipHelperW.mm index 4e5f3d3..6c3aaee 100644 --- a/kram-profile/Source/KramZipHelperW.mm +++ b/kram-profile/Source/KramZipHelperW.mm @@ -52,13 +52,13 @@ - (ZipEntryW)zipEntry:(NSInteger)index { - (ZipEntryW)zipEntryByName:(nonnull const char*)name { // TODO: fix to return a dummy type, since zips can be missing files // from one iteration to the next. - static ZipEntry nilEntry = {}; - ZipEntry* entry = _helper.zipEntry(name); + static ZipEntryW nilEntry = {}; + const ZipEntry* entry = _helper.zipEntry(name); if (entry) { return *(const ZipEntryW*)entry; } else { - return (ZipEntryW&)nilEntry; + return nilEntry; } }