diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2008-11-21 12:07:43 +0000 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2008-11-21 13:07:43 +0100 |
commit | b15b7ef84d1c9f2f856e6487c4ced86a6da977c7 (patch) | |
tree | c34afc739ede871b04ed0871c5f5da770d62d0a6 /libobjc/sendmsg.c | |
parent | 6b96ae3a28f6dff08a946ae48b8c33aae529fee3 (diff) | |
download | gcc-b15b7ef84d1c9f2f856e6487c4ced86a6da977c7.zip gcc-b15b7ef84d1c9f2f856e6487c4ced86a6da977c7.tar.gz gcc-b15b7ef84d1c9f2f856e6487c4ced86a6da977c7.tar.bz2 |
Object.m (errno): Replaced by errno.h include.
2008-11-21 Kai Tietz <kai.tietz@onevision.com>
* Object.m (errno): Replaced by errno.h include.
(compare): Cast self to id to prevent warning on comparison.
* objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is
already there.
* sendmsg.c (__objc_print_dtable_stats): Remove type warnings.
* thr-win32.c (__objc_thread_detach): Remove type warning.
(__objc_thread_id): Likewise.
* thr.c (__objc_thread_detach_functiont): Add __builtin_trap ()
for noreturn.
From-SVN: r142087
Diffstat (limited to 'libobjc/sendmsg.c')
-rw-r--r-- | libobjc/sendmsg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libobjc/sendmsg.c b/libobjc/sendmsg.c index b132a15..42d3e02 100644 --- a/libobjc/sendmsg.c +++ b/libobjc/sendmsg.c @@ -687,14 +687,14 @@ __objc_print_dtable_stats () #endif printf ("arrays: %d = %ld bytes\n", narrays, - (long) (narrays * sizeof (struct sarray))); + (long) ((size_t) narrays * sizeof (struct sarray))); total += narrays * sizeof (struct sarray); printf ("buckets: %d = %ld bytes\n", nbuckets, - (long) (nbuckets * sizeof (struct sbucket))); + (long) ((size_t) nbuckets * sizeof (struct sbucket))); total += nbuckets * sizeof (struct sbucket); printf ("idxtables: %d = %ld bytes\n", - idxsize, (long) (idxsize * sizeof (void *))); + idxsize, (long) ((size_t) idxsize * sizeof (void *))); total += idxsize * sizeof (void *); printf ("-----------------------------------\n"); printf ("total: %d bytes\n", total); |