diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-02-20 15:29:38 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-02-20 15:29:38 +0000 |
commit | 042db22ef78a3044a4d43fdd89b3495d465126e3 (patch) | |
tree | 3aae3be10082143be08fb1cad9f9c953370f0e8e /usr.bin | |
parent | 9a50403d9ddaadca2666d4e1e0356438ba1ff31d (diff) |
Fix the C type used for 32-bit float/lefloat/befloat, it should be float
not double (they are not used in any magic files anyway at the moment
though). Spotted by and ok jsg.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/file/magic-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/file/magic-test.c b/usr.bin/file/magic-test.c index 06778d177d5..6beffe8ffc4 100644 --- a/usr.bin/file/magic-test.c +++ b/usr.bin/file/magic-test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: magic-test.c,v 1.15 2015/10/06 08:20:10 nicm Exp $ */ +/* $OpenBSD: magic-test.c,v 1.16 2016/02/20 15:29:37 nicm Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> @@ -508,7 +508,7 @@ static int magic_test_type_float(struct magic_line *ml, struct magic_state *ms) { uint32_t value0; - double value; + float value; int result; if (magic_copy_from(ms, -1, &value0, sizeof value0) != 0) |