bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 09/29] device/cirbuf.c (getc): use char instead of an unsigne


From: Samuel Thibault
Subject: Re: [PATCH 09/29] device/cirbuf.c (getc): use char instead of an unsigned char
Date: Tue, 10 Dec 2013 00:37:21 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Marin Ramesa, le Mon 09 Dec 2013 23:57:24 +0100, a écrit :
> I don't understand why nr is a pointer to unsigned char.

Because of this:

>       c = *nr;

We want c to really be a value between 0 and 255, not between -128 and
127.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]