From: "Fima Furman" <[EMAIL PROTECTED]>
Subject: Weird behavior in static Compare callback function


> After calling DmInsertionSort, the flowing function
> would always fall into second if statement if (diff > 0)
> while diff is clearly set to -1. Can someone guess what's going on?
> 
> static Int CompareRecord(void *rec1, void *rec2, Int other,
> SortRecordInfoPtr info1, SortRecordInfoPtr info2, VoidHand appInfo)

Try using Int16 instead of Int.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to