diff --git a/Source/Dictionary.m b/Source/Dictionary.m index 094f67833..3990f0429 100644 --- a/Source/Dictionary.m +++ b/Source/Dictionary.m @@ -161,17 +161,11 @@ - (void*) newEnumState { - void *es; - NSMapEnumerator me; + void *me; - OBJC_MALLOC (es, NSMapEnumerator, 1); -#if 1 - *((NSMapEnumerator*)es) = NSEnumerateMapTable (_contents_hash); -#else - me = NSEnumerateMapTable (_contents_hash); - memcpy (es, &me, sizeof (NSMapEnumerator)); -#endif - return es; + OBJC_MALLOC (me, NSMapEnumerator, 1); + *((NSMapEnumerator*)me) = NSEnumerateMapTable (_contents_hash); + return me; } - (void) freeEnumState: (void**)enumState