diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-04-19 07:27:15 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-04-19 07:27:15 -0400 |
commit | c925bb2db85933cbb680fe2ff6711dd4855446b3 (patch) | |
tree | 2993ee1ca0b6aecfe5f9f5a9e4d9daed0fa3fa6a | |
parent | 07450b7ba947b8476242fe7e7824067e5a554920 (diff) | |
download | vecmathlib-c925bb2db85933cbb680fe2ff6711dd4855446b3.zip vecmathlib-c925bb2db85933cbb680fe2ff6711dd4855446b3.tar.gz |
Use std::ptrdiff_t instead of ptrdiff_t
-rw-r--r-- | vec_mask.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -18,14 +18,14 @@ namespace vecmathlib { typedef typename realvec_t::intvec_t intvec_t; static int const size = realvec_t::size; - ptrdiff_t imin, imax; - ptrdiff_t i; + std::ptrdiff_t imin, imax; + std::ptrdiff_t i; boolvec_t m; bool all_m; public: mask_t(boolvec_t m_): m(m_), all_m(all(m)) {} - mask_t(ptrdiff_t imin_, ptrdiff_t imax_, ptrdiff_t ioff): + mask_t(std::ptrdiff_t imin_, std::ptrdiff_t imax_, std::ptrdiff_t ioff): imin(imin_), imax(imax_), i(imin - (ioff + imin) % size) { @@ -37,7 +37,7 @@ namespace vecmathlib { intvec_t(i) <= intvec_t(imax-size) - intvec_t::iota()); } } - ptrdiff_t index() const { return i; } + std::ptrdiff_t index() const { return i; } operator bool() const { return i<imax; } void operator++() { |