From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] I: gcc 6.3.1 && binutils 2.27.0
Date: Mon, 16 Jan 2017 14:48:14 +0300
Message-ID: <20170116114814.GA17156@altlinux.org> (raw)
In-Reply-To: <CA+qzennmMAv4JL1UyZ__0k02d=xODB6ock_omPVbFGxThzqiDA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 626 bytes --]
Hi,
On Mon, Jan 16, 2017 at 01:22:24AM +0300, Alexey Tourbin wrote:
[...]
> Ну например, из очень старого кода, который оказывается и не я
> написал, а он мне снится по ночам:
>
> /* XXX diff may overflow short int */
> char buf[3] = { (char) 0x80, (char) (diff >> 8),
> (char) diff };
>
> http://git.altlinux.org/people/at/packages/slocate.git?p=slocate.git;a=commitdiff;h=82eb736e
>
> Насколько легальна здесь инициализация buf[0] = (char) 0x80? Это уже вышка?
Что же это получается, may overflow, стало быть, вас не беспокоит,
а (char) 0x80 беспокоит?
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2017-01-16 11:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-13 15:13 Gleb Fotengauer-Malinovskiy
2017-01-14 14:28 ` Антон Мидюков
2017-01-15 9:50 ` Sergey Y. Afonin
2017-01-15 10:03 ` Антон Мидюков
2017-01-15 10:19 ` Hihin Ruslan
2017-01-15 11:30 ` Dmitry V. Levin
2017-01-15 11:49 ` Антон Мидюков
2017-01-15 11:53 ` Sergey Y. Afonin
2017-01-15 20:29 ` Michael Shigorin
2017-01-15 22:22 ` Alexey Tourbin
2017-01-16 11:48 ` Dmitry V. Levin [this message]
2017-01-25 6:40 ` Alexey Tourbin
2017-01-25 7:54 ` Dmitry V. Levin
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=20170116114814.GA17156@altlinux.org \
--to=ldv@altlinux.org \
--cc=devel@lists.altlinux.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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git