Commit fe2a7b49 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

variables: check that FLT_RADIX is two

parent 2d788ac2
...@@ -1321,6 +1321,9 @@ int (var_InheritURational)(vlc_object_t *object, ...@@ -1321,6 +1321,9 @@ int (var_InheritURational)(vlc_object_t *object,
d = 1; d = 1;
} else if (exp <= 0) { } else if (exp <= 0) {
n = floor(scalbn(f, ubits - 1 + exp)); n = floor(scalbn(f, ubits - 1 + exp));
#if (FLT_RADIX != 2)
# error Floating point configuration not supported.
#endif
d = 1u << (ubits - 1); d = 1u << (ubits - 1);
} else if (exp <= ubits) { } else if (exp <= ubits) {
n = floor(scalbn(f, ubits)); n = floor(scalbn(f, ubits));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment