From: Roman Shaposhnick <rvs@sun.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] quiz
Date: Tue, 5 Jun 2007 18:16:00 -0700 [thread overview]
Message-ID: <1181092560.4241.48.camel@work.sfbay.sun.com> (raw)
In-Reply-To: <2F03E7E9-C7F5-41C6-9E27-462B6B07EE14@telus.net>
On Tue, 2007-06-05 at 18:07 -0700, Paul Lalonde wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Signed bit field overflow.
>
> You (don't) want "unsigned int botch:1;"
>
> Yuck.
This bit of C is even more obscure. Consider this:
struct {
enum {A=-1} x:1;
} s = {A};
In this particular case you're at a total mercy of
the compiler 'cause you can't really write '[un]signed enum'
Thanks,
Roman.
next prev parent reply other threads:[~2007-06-06 1:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-06 0:36 ron minnich
2007-06-06 0:43 ` Roman Shaposhnick
2007-06-06 3:41 ` ron minnich
2007-06-06 3:48 ` Roman Shaposhnik
2007-06-06 4:18 ` ron minnich
2007-06-06 4:30 ` Kris Maglione
2007-06-06 4:36 ` Kris Maglione
2007-06-06 7:05 ` Bruce Ellis
2007-06-06 8:15 ` W B Hacker
2007-06-06 1:07 ` Paul Lalonde
2007-06-06 1:16 ` Roman Shaposhnick [this message]
2007-06-06 8:49 ` [9fans] quiz prem
-- strict thread matches above, loose matches on Subject: below --
2002-05-02 5:55 [9fans] quiz rob pike, esq.
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=1181092560.4241.48.camel@work.sfbay.sun.com \
--to=rvs@sun.com \
--cc=9fans@cse.psu.edu \
/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 NNTP newsgroup(s).