diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-05-10 15:20:53 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-05-10 15:20:53 +0200 |
commit | 6c30bd85b615dc8de5cc0cbf9bd681916caee405 (patch) | |
tree | d8ae1cc54802c9941d6e834f27941dbf48a67643 /src/mds-server/mds-server.c | |
parent | m + add full_write and add full_read (diff) | |
download | mds-6c30bd85b615dc8de5cc0cbf9bd681916caee405.tar.gz mds-6c30bd85b615dc8de5cc0cbf9bd681916caee405.tar.bz2 mds-6c30bd85b615dc8de5cc0cbf9bd681916caee405.tar.xz |
fix compare overflow
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-server/mds-server.c')
-rw-r--r-- | src/mds-server/mds-server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds-server/mds-server.c b/src/mds-server/mds-server.c index 28fd37f..e63b1af 100644 --- a/src/mds-server/mds-server.c +++ b/src/mds-server/mds-server.c @@ -905,8 +905,8 @@ static int cmp_queued_interception(const void* a, const void* b) { const queued_interception_t* p = b; /* Highest first, so swap them. */ const queued_interception_t* q = a; - int64_t diff = p->priority - q->priority; - return diff < 0 ? -1 : diff > 0 ? 1 : 0; + return p->priority < q->priority ? -1 : + p->priority > q->priority ? 1 : 0; } |