mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
od: reinstate half float validation check
Reinstate check removed in commit 56aa549a0 so that we
disallow -f2 when configured with utils_cv_ieee_16_bit_supported=no.
Otherwise the output routines will consume floats,
i.e. 4 bytes at a time. Without this extra check
the tests/od/od-endian.sh will fail with this configuration.
* src/od.c (decode_one_format): Reinstate the explicit check
for this configuration edge case.
This commit is contained in:
1 parent
9075b2b8d2
commit
87dcd447b1
1 file changed
+3
-1
@@ -871,7 +871,9 @@ decode_one_format (char const *s_orig, char const *s, char const **next,
|
||||
else
|
||||
{
|
||||
if (ARRAY_CARDINALITY (fp_type_size) <= size
|
||||
|| fp_type_size[size] == NO_SIZE)
|
||||
|| fp_type_size[size] == NO_SIZE
|
||||
|| (! FLOAT16_SUPPORTED && BF16_SUPPORTED
|
||||
&& size == sizeof (bfloat16)))
|
||||
{
|
||||
error (0, 0,
|
||||
_("invalid type string %s;\n"
|
||||
|
||||
Reference in new issue
Block a user