~ubuntu-branches/ubuntu/utopic/gnustep-base/utopic

« back to all changes in this revision

Viewing changes to Source/Additions/GSInsensitiveDictionary.m

  • Committer: Package Import Robot
  • Author(s): Paul Gevers
  • Date: 2014-07-19 13:02:18 UTC
  • mfrom: (20.1.6 utopic-proposed)
  • Revision ID: package-import@ubuntu.com-20140719130218-pn967l7wzjjf90yi
Tags: 1.24.6-2ubuntu1
* debian/rules:
  - Print the config.log if configure fails to debug
    powerpc/ppc64el FTBFS. (LP: #1277975)

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
}
171
171
 
172
172
/* Designated initialiser */
173
 
- (id) initWithObjects: (const id[])objs forKeys: (const id[])keys count: (NSUInteger)c
 
173
- (id) initWithObjects: (const id[])objs forKeys: (const id <NSCopying>[])keys count: (NSUInteger)c
174
174
{
175
175
  NSUInteger    i;
176
176
 
192
192
                      format: @"Tried to init dictionary with nil value"];
193
193
        }
194
194
 
195
 
      node = GSIMapNodeForKey(&map, (GSIMapKey)keys[i]);
 
195
      node = GSIMapNodeForKey(&map, (GSIMapKey)(id)keys[i]);
196
196
      if (node)
197
197
        {
198
198
          IF_NO_GC(RETAIN(objs[i]));
201
201
        }
202
202
      else
203
203
        {
204
 
          GSIMapAddPair(&map, (GSIMapKey)keys[i], (GSIMapVal)objs[i]);
 
204
          GSIMapAddPair(&map, (GSIMapKey)(id)keys[i], (GSIMapVal)objs[i]);
205
205
        }
206
206
    }
207
207
  return self;