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; } }