From 7e5a1bb6b95aa7a5014e09cb5cb456881e326219 Mon Sep 17 00:00:00 2001 From: Henning Stahlke Date: Wed, 20 Dec 2017 08:25:49 +0100 Subject: [PATCH] try to fix windows build error --- src/FDM/YASim/Vector.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FDM/YASim/Vector.hpp b/src/FDM/YASim/Vector.hpp index 5dbf8b42f..884606963 100644 --- a/src/FDM/YASim/Vector.hpp +++ b/src/FDM/YASim/Vector.hpp @@ -50,14 +50,14 @@ inline int Vector::add(void* p) inline void* Vector::get(int i) const { - assert(i >= 0 and i < _sz); + assert((i >= 0) && (i < _sz)); return _array[i]; } inline void Vector::set(int i, void* p) { - assert(i >= 0 and i < _sz); + assert((i >= 0) && (i < _sz)); _array[i] = p; }