glsl: correct bitcast-helpers
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 24 Sep 2019 14:57:03 +0000 (16:57 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 25 Sep 2019 04:52:54 +0000 (04:52 +0000)
commit88f909eb37dc3867f9d2fcd44ccee6dceaac071c
treef11ba84263e7020fcb988db98660d179946087a2
parent678ebda8b7df114f278f619f88ab2a0a5cf0eb48
glsl: correct bitcast-helpers

Without this, we'll incorrectly round off huge values to the nearest
representable double instead of keeping it at the exact value  as
we're supposed to.

Found by inspecting compiler-warnings.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Fixes: 85faf5082f ("glsl: Add 64-bit integer support for constant expressions")
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/compiler/glsl/ir_constant_expression.cpp