diff --git a/src/include/deepstate/DeepState.hpp b/src/include/deepstate/DeepState.hpp index 460155b..2d8ca64 100644 --- a/src/include/deepstate/DeepState.hpp +++ b/src/include/deepstate/DeepState.hpp @@ -351,7 +351,7 @@ inline static const T &OneOf(const std::vector &arr) { if (arr.empty()) { DeepState_Abandon("Empty vector passed to OneOf."); } - return arr[DeepState_IntInRange(0, arr.size - 1)]; + return arr[DeepState_IntInRange(0, arr.size() - 1)]; }