Ticket #5298: queue-order-fix.diff

File queue-order-fix.diff, 599 bytes (added by gabrielrcp, 9 years ago)
  • libtransmission/session.c

     
    27962796  int position;
    27972797};
    27982798
    2799 /* higher positions come first */
    28002799static int
    28012800compareTorrentAndPositions (const void * va, const void * vb)
    28022801{
     
    28052804  const struct TorrentAndPosition * b = vb;
    28062805
    28072806  if (a->position > b->position)
     2807    ret = 1;
     2808  else if (a->position < b->position)
    28082809    ret = -1;
    2809   else if (a->position < b->position)
    2810     ret = 1;
    28112810  else
    28122811    ret = 0;
    28132812