"change size_t type to avoid warning"

gangliao-patch-1
dzhwinter 8 years ago
parent b9d024e5e1
commit 5ab958ba3b

@ -23,11 +23,11 @@ public:
this->data_ = t.get_buffer();
}
T* get_buffer() { return this->data_; }
T& operator[](const int idx) {
T& operator[](const size_t idx) {
CHECK(idx >= 0 && idx < this->width_) << "out of index range";
return data_[idx];
}
T& operator[](const int idx) const {
T& operator[](const size_t idx) const {
CHECK(idx >= 0 && idx < this->width_) << "out of index range";
return data_[idx];
}

Loading…
Cancel
Save