Skip to content
Snippets Groups Projects
Commit f2d4c39a authored by Gary B Skouson's avatar Gary B Skouson Committed by Tim Wickberg
Browse files

Fix incorrect casts in preempt/job_prio plugin sorting function.

Bug 3714.
parent 6e08d59f
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ documents those changes that are of interest to users and administrators.
reboot nodes to change KNL mode.
-- Preempt plugins - fix check for 'preempt_youngest_first' option.
-- Preempt plugins - fix incorrect casts in preempt_youngest_first mode.
-- Preempt/job_prio - fix incorrect casts in sort function.
* Changes in Slurm 17.02.2
==========================
......
......@@ -699,8 +699,8 @@ static bool _job_prio_preemptable(struct job_record *preemptor,
/* Sort jobs by priority. Use runtime as secondary key */
static int _sort_by_job_prio(void *x, void *y)
{
struct job_record *job_ptr1 = (struct job_record *) x;
struct job_record *job_ptr2 = (struct job_record *) y;
struct job_record *job_ptr1 = *(struct job_record **) x;
struct job_record *job_ptr2 = *(struct job_record **) y;
if (job_ptr1->priority > job_ptr2->priority)
return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment