From: "Lars J. Aas" <larsa@sim.no>
Subject: Re: SCM_POSFIXABLE(-1) fails with MSVC++ 6.0
Date: Fri, 23 Aug 2002 12:40:54 +0200 [thread overview]
Message-ID: <20020823104054.GA27923@sim.no> (raw)
In-Reply-To: <20020822134720.GB16177@sim.no>
Lars J. Aas <larsa@sim.no> wrote:
: Changing the alternative definition of SCM_LONG_BITS to cast the value
: to long like this works...
:
: # define SCM_LONG_BIT ((long)(SCM_CHAR_BIT * sizeof (long) / sizeof (char)))
Come to think of it, the cast is better placed on the inside so it's more
evident what is being done (stopping the unsigned-ness of the sizeof()-
operations to propagate incorrectly out through the macro invokation) so
it's not removed later by someone not knowing about this compiler bug.
# define SCM_LONG_BIT (SCM_CHAR_BIT * ((long) (sizeof (long) / sizeof (char))))
or s/long/int/ on the cast?
BTW, is anyone reading these mails? ;)
Lars J
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
next prev parent reply other threads:[~2002-08-23 10:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-22 13:30 SCM_POSFIXABLE(-1) fails with MSVC++ 6.0 Lars J. Aas
2002-08-22 13:47 ` Lars J. Aas
2002-08-23 10:40 ` Lars J. Aas [this message]
2002-08-24 7:42 ` Dirk Herrmann
2002-08-24 15:57 ` Lynn Winebarger
2002-08-25 13:27 ` Lars J. Aas
2002-08-25 16:01 ` Lynn Winebarger
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020823104054.GA27923@sim.no \
--to=larsa@sim.no \
/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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).