Current-Users archive

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

Re: ipmi(4) and negative temperatures



On Mon, Apr 02, 2012 at 08:55:10PM +0200, Matthias Drochner wrote:
> 
> On Mon, 2 Apr 2012 20:03:14 +0200
> Nicolas Joly <njoly%pasteur.fr@localhost> wrote:
> > +     vs = (sign == 0x1 || sign == 0x2) ? (int8_t)v : v;
> 
> Shouldn't the 1's complement case be considered? Just a small
> error, but for sake of accuracy:
> if ((vs < 0) && (sign == 0x1))
>         vs++;

Who is using one-complement?

Joerg


Home | Main Index | Thread Index | Old Index