revert local changes

revert-4814-Add_sequence_project_op
typhoonzero 7 years ago
parent 023166a820
commit 6942eb2ce4

@ -60,9 +60,7 @@ public:
*/
inline real* get(int row) const {
if (preallocatedBuf_) {
// CHECK_LE((row + 1) * width_ * sizeof(real),
// preallocatedBuf_->getSize());
CHECK_LE((row)*width_ * sizeof(real), preallocatedBuf_->getSize());
CHECK_LE((row + 1) * width_ * sizeof(real), preallocatedBuf_->getSize());
return reinterpret_cast<real*>(preallocatedBuf_->getBuf()) + row * width_;
} else {
CHECK_LE((row + 1) * width_, rowStore_.size());

Loading…
Cancel
Save