[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[giFTcurs-commits] giFTcurs/src test_list.c
From: |
Christian Häggström |
Subject: |
[giFTcurs-commits] giFTcurs/src test_list.c |
Date: |
Tue, 04 Nov 2003 18:16:17 -0500 |
CVSROOT: /cvsroot/giftcurs
Module name: giFTcurs
Branch:
Changes by: Christian Häggström <address@hidden> 03/11/04 18:16:17
Modified files:
src : test_list.c
Log message:
Fix the integer compare route to handle all 32 bits
Patches:
Index: giFTcurs/src/test_list.c
diff -u giFTcurs/src/test_list.c:1.5 giFTcurs/src/test_list.c:1.6
--- giFTcurs/src/test_list.c:1.5 Tue Nov 4 18:01:32 2003
+++ giFTcurs/src/test_list.c Tue Nov 4 18:16:17 2003
@@ -18,7 +18,7 @@
* along with giFTcurs; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
- * $Id: test_list.c,v 1.5 2003/11/04 23:01:32 weinholt Exp $
+ * $Id: test_list.c,v 1.6 2003/11/04 23:16:17 saturn Exp $
*/
#include "giftcurs.h"
@@ -28,7 +28,7 @@
#include "list.h"
-int unsorted(list *snafu)
+static int unsorted(list *snafu)
{
int i;
@@ -42,14 +42,14 @@
}
return 0;
}
-int int_compare(int *a, int *b)
+static int int_compare(int *a, int *b)
{
if (*a != *b)
- return *a - *b;
+ return *a < *b ? -1 : 1;
return a - b;
}
-int byte_compare(int *a, int *b)
+static int byte_compare(int *a, int *b)
{
return *a - *b;
}