Resolving MSVC compile warnings.
Particles.h(170): warning C4800: '__int64': forcing value to bool 'true' or 'false' (performance warning)
This commit is contained in:
parent
9d82ce233a
commit
ddde549688
@ -167,7 +167,10 @@ public:
|
|||||||
status.Set(idx, status.Get(idx) & ~b);
|
status.Set(idx, status.Get(idx) & ~b);
|
||||||
}
|
}
|
||||||
VTKM_EXEC_CONT
|
VTKM_EXEC_CONT
|
||||||
bool CheckBit(const vtkm::Id& idx, const ParticleStatus& b) const { return status.Get(idx) & b; }
|
bool CheckBit(const vtkm::Id& idx, const ParticleStatus& b) const
|
||||||
|
{
|
||||||
|
return (status.Get(idx) & b) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
VTKM_EXEC_CONT
|
VTKM_EXEC_CONT
|
||||||
vtkm::Vec<T, 3> GetPos(const vtkm::Id& idx) const { return pos.Get(idx); }
|
vtkm::Vec<T, 3> GetPos(const vtkm::Id& idx) const { return pos.Get(idx); }
|
||||||
|
Loading…
Reference in New Issue
Block a user