1. Dave Dribin
  2. DDCoreAudio

Commits

Dave Dribin  committed a64df90

Switch to NSUInteger for 64-bit compatibility

  • Participants
  • Parent commits 0020f00
  • Branches default

Comments (0)

Files changed (2)

File lib/DDAudioUnit.h

View file
  • Ignore whitespace
 
 - (NSArray *) factoryPresets;
 
-- (unsigned) indexOfFactoryPreset: (DDAudioUnitPreset *) presetToFind;
+- (NSUInteger) indexOfFactoryPreset: (DDAudioUnitPreset *) presetToFind;
 
 - (DDAudioUnitPreset *) presentPreset;
 - (void) setPresentPreset: (DDAudioUnitPreset *) presentPreset;

File lib/DDAudioUnit.m

View file
  • Ignore whitespace
     return mFactoryPresets;
 }
 
-- (unsigned) indexOfFactoryPreset: (DDAudioUnitPreset *) presetToFind;
+- (NSUInteger) indexOfFactoryPreset: (DDAudioUnitPreset *) presetToFind;
 {
-    unsigned result = NSNotFound;
-    unsigned i;
+    NSUInteger result = NSNotFound;
+    NSUInteger i;
     for (i = 0; i < [mFactoryPresets count]; i++)
     {
         DDAudioUnitPreset * preset = [mFactoryPresets objectAtIndex: i];