You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.1 KiB
54 lines
1.1 KiB
diff -up mhash-0.9.9.9/lib/stdfns.c.BAD mhash-0.9.9.9/lib/stdfns.c
|
|
--- mhash-0.9.9.9/lib/stdfns.c.BAD 2009-07-21 12:01:21.596191078 -0400
|
|
+++ mhash-0.9.9.9/lib/stdfns.c 2009-07-21 12:02:37.419191301 -0400
|
|
@@ -24,6 +24,7 @@
|
|
*/
|
|
|
|
#include "libdefs.h"
|
|
+#include <limits.h>
|
|
|
|
/**
|
|
* Some of these are wrappers. The idea is to eventually produce an extremely
|
|
@@ -408,11 +409,11 @@ mutils_memcmp(__const void *s1, const vo
|
|
{
|
|
return(0);
|
|
}
|
|
- return(-MAXINT);
|
|
+ return(-INT_MAX);
|
|
}
|
|
if (s2 == NULL)
|
|
{
|
|
- return(MAXINT);
|
|
+ return(INT_MAX);
|
|
}
|
|
|
|
return(memcmp(s1, s2, n));
|
|
@@ -539,11 +540,11 @@ mutils_strcmp(__const mutils_word8 *src1
|
|
{
|
|
return(0);
|
|
}
|
|
- return(-MAXINT);
|
|
+ return(-INT_MAX);
|
|
}
|
|
if (src2 == NULL)
|
|
{
|
|
- return(MAXINT);
|
|
+ return(INT_MAX);
|
|
}
|
|
return(strcmp((char *) src1, (char *) src2));
|
|
}
|
|
@@ -562,11 +563,11 @@ mutils_strncmp(__const mutils_word8 *src
|
|
{
|
|
return(0);
|
|
}
|
|
- return(-MAXINT);
|
|
+ return(-INT_MAX);
|
|
}
|
|
if (src2 == NULL)
|
|
{
|
|
- return(MAXINT);
|
|
+ return(INT_MAX);
|
|
}
|
|
return(strncmp((char *) src1, (char *) src2, n));
|
|
}
|