Mail Archives: djgpp-workers/2001/06/09/13:12:13
Are these correct corrections?:
Index: src/libc/ansi/stdio/doprnt.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/ansi/stdio/doprnt.c,v
retrieving revision 1.8
diff -p -u -r1.8 doprnt.c
--- src/libc/ansi/stdio/doprnt.c 1999/07/04 14:18:04 1.8
+++ src/libc/ansi/stdio/doprnt.c 2001/06/09 17:06:39
@@ -327,7 +327,7 @@ _doprnt(const char *fmt0, va_list argp,
*/
char *p /*, *memchr() */;
- if ((p = memchr(t, 0, prec)))
+ if ((p = memchr(t, 0, (size_t)prec)))
{
size = p - t;
if (size > prec)
Index: src/libc/dos/compat/d_read.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/dos/compat/d_read.c,v
retrieving revision 1.1
diff -p -u -r1.1 d_read.c
--- src/libc/dos/compat/d_read.c 1995/10/09 06:00:00 1.1
+++ src/libc/dos/compat/d_read.c 2001/06/09 17:06:47
@@ -24,7 +24,7 @@ unsigned int _dos_read(int handle, void
/* Allocate ~64K or less transfer buffer from DOS */
dos_buffer_size = ( count < 0xFFE0 ) ? count : 0xFFE0;
- if ( (dos_segment=__dpmi_allocate_dos_memory((dos_buffer_size + 15) >> 4, &dos_selector)) == -1 )
+ if ( (dos_segment=__dpmi_allocate_dos_memory((dos_buffer_size + 15) >> 4, &dos_selector)) == (unsigned int)-1 )
{
errno = ENOMEM;
return 8;
Index: src/libc/posix/sys/stat/is_exec.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/posix/sys/stat/is_exec.c,v
retrieving revision 1.3
diff -p -u -r1.3 is_exec.c
--- src/libc/posix/sys/stat/is_exec.c 1999/03/20 21:59:51 1.3
+++ src/libc/posix/sys/stat/is_exec.c 2001/06/09 17:07:02
@@ -181,7 +181,7 @@ _is_executable(const char *filename, int
if ((_djstat_flags & _STAT_EXEC_EXT) == 0
&& extension
&& *extension
- && strlen(extension) <= ((extension[0]=='.') ? 4 : 3))
+ && strlen(extension) <= ((extension[0]=='.') ? 4U : 3U))
{
/* Search the list of extensions in executables[]. */
char tmp_buf[6], *tp = tmp_buf;
I ask because I'm not a master of signed and unsigned issues.
Right,
MartinS
- Raw text -