From: jarausch@igpm.rwth-aachen.de
To: pws@pwstephenson.fsnet.co.uk
Cc: zsh-workers@sunsite.auc.dk
Subject: 64_bit logical is broken (was Re: Glob problem with memory)
Date: Mon, 03 Jan 2000 13:01:13 +0100 [thread overview]
Message-ID: <200001031201.NAA18846@numa1.igpm.rwth-aachen.de> (raw)
In-Reply-To: <200001031011.LAA11708@numa1.igpm.rwth-aachen.de>
in zsh.h we have
struct heap {
struct heap *next; /* next one */
size_t size; /* size of heap */
size_t used; /* bytes used from the heap */
struct heapstack *sp; /* used by pushheap() to save the value used */
#ifdef PAD_64_BIT
size_t dummy; /* Make sure sizeof(heap) is a multiple of 8 */
#endif
with
#ifndef LONG_IS_64_BIT
# define PAD_64_BIT 1
#endif
Now here
sizeof(long)== 4 so PAD_64_BIT is defined as 1
but
sizeof(size_t) == 4 and sizeof(void*) == 4 too
so that the padding of struct heap is just wrong here.
What's the intent?
Helmut.
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany
next prev parent reply other threads:[~2000-01-03 12:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-30 7:51 Glob problem with memory Felix Rosencrantz
2000-01-01 16:55 ` Peter Stephenson
2000-01-03 10:11 ` jarausch
2000-01-03 11:54 ` jarausch
2000-01-03 12:01 ` jarausch [this message]
2000-01-04 15:55 ` PATCH: struct heap 64-bit Clint Adams
2000-01-04 16:06 ` jarausch
2000-01-04 16:41 ` Tanaka Akira
2000-01-04 17:25 ` Clint Adams
2000-01-04 17:30 ` Tanaka Akira
2000-01-01 17:16 ` Glob problem with memory Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200001031201.NAA18846@numa1.igpm.rwth-aachen.de \
--to=jarausch@igpm.rwth-aachen.de \
--cc=pws@pwstephenson.fsnet.co.uk \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).