mesa: Fix compile error with MSVC 2013
authorThomas Sondergaard <ts@medical-insight.com>
Tue, 7 Jan 2014 20:31:00 +0000 (13:31 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 9 Jan 2014 00:33:06 +0000 (17:33 -0700)
This fixes the following compile error:
src\glsl\ir_constant_expression.cpp(1405) : error C2666: 'copysign' : 3
overloads have similar conversions

Cc: "10.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/glsl/ir_constant_expression.cpp

index 7ca865e225978043d8993338147b083646855655..f811fd1383e4ac24a9ce9436423b6def6e507054 100644 (file)
@@ -1402,7 +1402,7 @@ ir_expression::constant_expression_value(struct hash_table *variable_context)
          data.f[c] = ldexp(op[0]->value.f[c], op[1]->value.i[c]);
          /* Flush subnormal values to zero. */
          if (!isnormal(data.f[c]))
-            data.f[c] = copysign(0.0, op[0]->value.f[c]);
+            data.f[c] = copysign(0.0f, op[0]->value.f[c]);
       }
       break;