diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2024-05-09 15:51:43 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2024-05-09 15:51:43 -0400 |
| commit | 64444e7ea14368d4e6ed40e89b62ff335b87d65b (patch) | |
| tree | d21a8c0c6225be03a161b264ca9d7ec56030f406 /include/framework | |
| parent | 265610435e1164a9acc39ca02ea1139acd37c46c (diff) | |
| download | dynamic-extension-64444e7ea14368d4e6ed40e89b62ff335b87d65b.tar.gz | |
Fixed arithmetic bug
Diffstat (limited to 'include/framework')
| -rw-r--r-- | include/framework/structure/BufferView.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/framework/structure/BufferView.h b/include/framework/structure/BufferView.h index 11b8337..e95a799 100644 --- a/include/framework/structure/BufferView.h +++ b/include/framework/structure/BufferView.h @@ -164,7 +164,7 @@ private: bool m_active; size_t to_idx(size_t i) { - size_t idx = (m_start + i >= m_cap) ? i = (m_cap - m_start) + size_t idx = (m_start + i >= m_cap) ? i - (m_cap - m_start) : m_start + i; assert(idx < m_cap); return idx; |