okay, thanks for the tip, Sean. I'll double-check my use of ints in these cases.

On 24-Mar-09, at 9:39 AM, Sean McBride wrote:

On 3/24/09 8:22 AM, James Maxwell said:

        NSArray *pitchSlices = [[self MIDITrainingData] objectAtIndex:0];
        NSArray *rhythmSlices = [[self MIDITrainingData] objectAtIndex:1];
        int sliceCount = [pitchSlices count];

        float midiEventsToHTM[sliceCount][20];
        float rhythmEventsToHTM[sliceCount][20];
        int i,j,k;
        for(i=0;i < sliceCount;i++)
        {
                for(j=0;j < 10;j++)
                {

Another minor comment: you should probably use 'unsigned int' (or
NSUInteger) not 'int' for values like that that are never negative.
Note for example that 'count' returns an unsigned value, and
'objectAtIndex:' expects an unsigned value.

--
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to