@@ -105,18 +105,20 @@ @try { iter2->longOption = [iter->longOption copy]; if ([_longOptions objectForKey: - iter2->longOption] != NULL) + (OFString *)iter2->longOption] != + NULL) @throw [OFInvalidArgumentException exception]; [_longOptions setObject: iter2 - forKey: iter2->longOption]; + forKey: (OFString *) + iter2->longOption]; } @catch (id e) { /* * Make sure we are in a consistent * state where dealloc works. */ @@ -207,11 +209,12 @@ _lastLongOption = [[argument substringWithRange: of_range(2, pos - 2)] copy]; objc_autoreleasePoolPop(pool); - option = [_longOptions objectForKey: _lastLongOption]; + option = [_longOptions objectForKey: + (OFString *)_lastLongOption]; if (option == NULL) return '?'; if (option->hasArgument == 1 && _argument == nil) return ':';