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, 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++;

best regards
Matthias


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

Kennen Sie schon unsere app? http://www.fz-juelich.de/app


Home | Main Index | Thread Index | Old Index