Subversion Repositories wimsdev

Rev

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

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