summaryrefslogtreecommitdiff
path: root/src/common.cc
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-03-03 12:33:50 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-03-03 12:33:50 +0100
commitbeeffb374b66bb36d16628b8596782eb98107ef7 (patch)
tree2b6a4564d19a37fc775dcd75cda84da608176165 /src/common.cc
parent9c5b50bfeabd0bd56cd2f9180c4161288ca9431a (diff)
fox bugs
Diffstat (limited to 'src/common.cc')
-rw-r--r--src/common.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.cc b/src/common.cc
index 12fe710..bae29da 100644
--- a/src/common.cc
+++ b/src/common.cc
@@ -72,7 +72,7 @@ struct Slice {
}
const T* operator[](usize index) const {
- assert(index < this->total_length());
+ assert(index < this->length);
return this->ptr + index;
}