From 9ae83b845687ff04cd89613745214f43b6700626 Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Fri, 25 Apr 2008 22:45:10 +0200 Subject: fixincl.c (fix_with_system): Cast pointer difference to long. 2008-04-25 Kai Tietz * fixincl.c (fix_with_system): Cast pointer difference to long. * fixlib.c (make_raw_shell_str): Cast compare to avoid sign warning. From-SVN: r134679 --- fixincludes/fixlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fixincludes/fixlib.c') diff --git a/fixincludes/fixlib.c b/fixincludes/fixlib.c index cc335f5659a..2dc9bb1cd9e 100644 --- a/fixincludes/fixlib.c +++ b/fixincludes/fixlib.c @@ -259,14 +259,14 @@ make_raw_shell_str( char* pz_d, tCC* pz_s, size_t smax ) *(pz_d++) = '\''; for (;;) { - if (pz_d - pz_d_start >= smax) + if (((size_t) (pz_d - pz_d_start) >= smax) return (char*)NULL; switch (*(pz_d++) = *(pz_s++)) { case NUL: goto loopDone; case '\'': - if (pz_d - pz_d_start >= smax - sizeof( zQ )-1) + if ((size_t) (pz_d - pz_d_start) >= smax - sizeof( zQ )-1) return (char*)NULL; strcpy( pz_d-1, zQ ); pz_d += sizeof( zQ )-2; -- cgit v1.2.1