Subversion Repositories wimsdev

Rev

Rev 8837 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8837 Rev 8860
Line 243... Line 243...
243
        for (i=0; i<6; i++)
243
        for (i=0; i<6; i++)
244
        {
244
        {
245
                p = results[i];
245
                p = results[i];
246
                while (p)
246
                while (p)
247
                {
247
                {
248
                        if (p->val-goal<min)
248
                        if (abs((int)p->val-goal)<min)
249
                        {
249
                        {
250
                                best = p;
250
                                best = p;
251
                                min = p->val-goal;
251
                                min = p->val-goal;
252
                        }
252
                        }
253
                        p = p->next;
253
                        p = p->next;