Commit fc380124 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

GCC 5.2 is more strict with signed/unsigned correctness. This removes a warning.

parent c123d484
...@@ -492,8 +492,8 @@ void parts_sort(struct part *parts, struct xpart *xparts, int *ind, int N, ...@@ -492,8 +492,8 @@ void parts_sort(struct part *parts, struct xpart *xparts, int *ind, int N,
unsigned int qstack_size = 2 * (max - min) + 10; unsigned int qstack_size = 2 * (max - min) + 10;
volatile unsigned int first, last, waiting; volatile unsigned int first, last, waiting;
int pivot; unsigned int pivot;
int i, ii, j, jj, temp_i, qid; unsigned int i, ii, j, jj, temp_i, qid;
struct part temp_p; struct part temp_p;
struct xpart temp_xp; struct xpart temp_xp;
...@@ -636,8 +636,8 @@ void gparts_sort(struct gpart *gparts, int *ind, int N, int min, int max) { ...@@ -636,8 +636,8 @@ void gparts_sort(struct gpart *gparts, int *ind, int N, int min, int max) {
int qstack_size = 2 * (max - min) + 10; int qstack_size = 2 * (max - min) + 10;
volatile unsigned int first, last, waiting; volatile unsigned int first, last, waiting;
int pivot; unsigned int pivot;
int i, ii, j, jj, temp_i, qid; unsigned int i, ii, j, jj, temp_i, qid;
struct gpart temp_p; struct gpart temp_p;
/* for ( int k = 0 ; k < N ; k++ ) /* for ( int k = 0 ; k < N ; k++ )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment