aboutsummaryrefslogtreecommitdiff
path: root/src/ARMJIT_Internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ARMJIT_Internal.h')
-rw-r--r--src/ARMJIT_Internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ARMJIT_Internal.h b/src/ARMJIT_Internal.h
index bb6621f..4244470 100644
--- a/src/ARMJIT_Internal.h
+++ b/src/ARMJIT_Internal.h
@@ -114,6 +114,7 @@ struct __attribute__((packed)) TinyVector
void Remove(int index)
{
+ assert(Length > 0);
assert(index >= 0 && index < Length);
Length--;