mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
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 <erik.faye-lund@collabora.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
b34422db5e
commit
d5c0fbfd78
1 changed files with 1 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue