Fix compile error in Vs plugin with gcc 8.2.
@@ -149,7 +149,7 @@ VsStaggeredField<TYPE>::getOriCellIndexSet(size_t bigIndex) const {
template <class TYPE>
std::valarray<int>
VsStaggeredField<TYPE>::getOriDisplacements(size_t subBigIndex) const {
- return (subBigIndex / this->twoPowSubRes) % 2;
+ return (subBigIndex / static_cast<TYPE>(this->twoPowSubRes)) % 2;
}
template <class TYPE>
