diff options
author | Erik Faye-Lund <[email protected]> | 2019-09-20 16:04:06 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2020-01-14 12:00:27 +0100 |
commit | d5c0fbfd7896a8f1fb07272188388763e3fed275 (patch) | |
tree | 71b58db948e22f5aa5292e4d23f01d39ee5232de | |
parent | b34422db5e6693a8651364556b49a5c3a3b2300a (diff) |
util: initialize float-array with float-literals
We currently initialize this float-array with double-literals. Some
compilers generate warnings for this, so let's switch these to
float-literals instead.
Signed-off-by: Erik Faye-Lund <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
-rw-r--r-- | src/util/format_srgb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/format_srgb.py b/src/util/format_srgb.py index 0b3b5611fc9..98fa1c48cf3 100644 --- a/src/util/format_srgb.py +++ b/src/util/format_srgb.py @@ -62,7 +62,7 @@ def generate_srgb_tables(): print('util_format_srgb_8unorm_to_linear_float_table[256] = {') for j in range(0, 256, 4): print(' ', end=' ') - print(' '.join(['%.7e,' % srgb_to_linear(i / 255.0) for i in range(j, j + 4)])) + print(' '.join(['%.7ef,' % srgb_to_linear(i / 255.0) for i in range(j, j + 4)])) print('};') print() print('const uint8_t') |