diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | dmidecode.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -20,7 +20,7 @@ CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ # When debugging, disable -O2 and enable -g. CFLAGS += -O2 -#CFLAGS += -g +CFLAGS += -g # Pass linker flags here LDFLAGS = diff --git a/dmidecode.c b/dmidecode.c index 928cbdb..366654a 100644 --- a/dmidecode.c +++ b/dmidecode.c @@ -2236,7 +2236,7 @@ static void dmi_memory_voltage_value(u16 code) if (code == 0) printf(" Unknown"); else - printf(" %.3f V", (float)(i16)code / 1000); + printf(" %.3f V", (float)code / 1000); } static const char *dmi_memory_device_form_factor(u8 code) |