Commit ae557798 authored by Mathieu Malaterre's avatar Mathieu Malaterre

ENH: gcc -fsingle-precision-constant is picky

parent 543e8075
......@@ -35,7 +35,7 @@
#include "vtkTransform.h"
#include "vtkWorldPointPicker.h"
vtkCxxRevisionMacro(vtkInteractorStyleUnicam, "1.34");
vtkCxxRevisionMacro(vtkInteractorStyleUnicam, "1.35");
vtkStandardNewMacro(vtkInteractorStyleUnicam);
// define 'TheTime()' function-- returns time in elapsed seconds
......@@ -408,7 +408,7 @@ void vtkInteractorStyleUnicam::RotateXY( int X, int Y )
{
this->FindPokedRenderer(X, Y);
double angle = -2*acos(clamp(dot,-1.,1.)) * Sign(te[0]-tp[0]);
double angle = -2*acos(clamp(dot,(double)-1.0,(double)1.0)) * Sign(te[0]-tp[0]);
double UPvec[3];
UPvec[0] = WorldUpVector[0];
......
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