diff options
author | Jean Delvare <jdelvare@suse.de> | 2013-04-23 15:06:23 +0000 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2013-04-23 15:06:23 +0000 |
commit | 92fe21af65e7ba47535c9d072811df1582c82fed (patch) | |
tree | e056b44117e2af81555f90e7a0c6866b01c4132f | |
parent | 71bfbc7afef89e85f6b897059ccd8101928a6ae9 (diff) | |
download | dmidecode-git-92fe21af65e7ba47535c9d072811df1582c82fed.tar.gz |
Drop unneeded and possibly dangerous cast.
Not that I really expect memory modules running above 32 V...
-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) |