1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed the CompareInts() function

This commit is contained in:
Klaus Schmidinger 2018-02-28 10:14:18 +01:00
parent 9c3ce0048a
commit 66d66b31dc
2 changed files with 3 additions and 2 deletions

View File

@ -9288,3 +9288,4 @@ Video Disk Recorder Revision History
- Updated the Polish OSD texts (thanks to Tomasz Maciej Nowak). - Updated the Polish OSD texts (thanks to Tomasz Maciej Nowak).
- When remote timers are fetched from a peer VDR, we no longer blindly delete and re-add - When remote timers are fetched from a peer VDR, we no longer blindly delete and re-add
them, but rather compare them and make only the minimum necessary changes. them, but rather compare them and make only the minimum necessary changes.
- Fixed the CompareInts() function.

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: tools.h 4.14 2018/02/28 10:06:47 kls Exp $ * $Id: tools.h 4.15 2018/02/28 10:13:40 kls Exp $
*/ */
#ifndef __TOOLS_H #ifndef __TOOLS_H
@ -774,7 +774,7 @@ public:
inline int CompareInts(const void *a, const void *b) inline int CompareInts(const void *a, const void *b)
{ {
return *(const int *)a > *(const int *)b; return *(const int *)a - *(const int *)b;
} }
inline int CompareStrings(const void *a, const void *b) inline int CompareStrings(const void *a, const void *b)