diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2008-04-25 22:45:10 +0200 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2008-04-25 22:45:10 +0200 |
commit | 9ae83b845687ff04cd89613745214f43b6700626 (patch) | |
tree | bfb8a4bd04f8bca9ab205c3fb2f8870e61c2d574 /fixincludes/fixlib.c | |
parent | 38101ca779c9b130f8559df3250c0f9d91cbd0ba (diff) | |
download | gcc-9ae83b845687ff04cd89613745214f43b6700626.tar.gz |
fixincl.c (fix_with_system): Cast pointer difference to long.
2008-04-25 Kai Tietz <kai.tietz@onvision.com>
* 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
Diffstat (limited to 'fixincludes/fixlib.c')
-rw-r--r-- | fixincludes/fixlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |