From: Martin Gebert <martin.gebert-TAFHyoIWub4hFhg+JK9F0w@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: man stdint.h
Date: Fri, 13 Nov 2009 11:02:42 +0100 [thread overview]
Message-ID: <4AFD2EC2.60000@alpha-bit.de> (raw)
Hi Michael,
I just found this ambiguities in stdint.h(0p) (from package
man-pages-posix-2003a on a current Gentoo system):
"An N-bit signed type has values in the range -2**N-1 or 1-2**N-1 to
2**N-1-1, while an N-bit unsigned type has values in the
range 0 to 2**N-1."
IMHO this should be "to (2**N-1)-1" for signed ints, and "to (2**N)-1"
for unsigned. Yet I'm not sure about the precedence of the ** operator,
as it is not defined for C/C++, so some more parenthesis around the
exponents should make this clear.
Martin
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2009-11-13 10:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-13 10:02 Martin Gebert [this message]
[not found] ` <4AFD2EC2.60000-TAFHyoIWub4hFhg+JK9F0w@public.gmane.org>
2009-11-13 15:19 ` man stdint.h Mike Frysinger
[not found] ` <200911131020.00356.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2009-11-13 15:53 ` Martin Gebert
[not found] ` <4AFD80E1.2090108-TAFHyoIWub4hFhg+JK9F0w@public.gmane.org>
2009-11-13 16:26 ` Mike Frysinger
[not found] ` <200911131126.19495.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2009-11-13 16:41 ` Petr Baudis
[not found] ` <20091113164133.GT3708-DDGJ70k9y3lX+M3pkMnKjw@public.gmane.org>
2009-11-13 16:52 ` Mike Frysinger
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=4AFD2EC2.60000@alpha-bit.de \
--to=martin.gebert-tafhyoiwub4hfhg+jk9f0w@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/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