fix return value to signed

This commit is contained in:
tg 2017-04-27 23:34:20 +00:00
parent 9db3cb57b9
commit 394a8507e8
1 changed files with 2 additions and 2 deletions

4
misc.c
View File

@ -30,7 +30,7 @@
#include <grp.h>
#endif
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.262 2017/04/27 23:12:47 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.263 2017/04/27 23:34:20 tg Exp $");
#define KSH_CHVT_FLAG
#ifdef MKSH_SMALL
@ -935,7 +935,7 @@ ascstrcmp(const void *s1, const void *s2)
return (0);
++cp2;
}
return (asc(*cp1) - asc(*cp2));
return ((int)asc(*cp1) - (int)asc(*cp2));
}
int