提交 5ab958ba 编写于 作者: D dzhwinter

"change size_t type to avoid warning"

上级 b9d024e5
......@@ -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];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册