From 3fa77e31d782a7c96722524246cde6ed05fa71d2 Mon Sep 17 00:00:00 2001 From: Wang Renxin Date: Tue, 20 Dec 2016 21:29:25 +0800 Subject: [PATCH] *avoided a warning. --- core/my_basic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/my_basic.c b/core/my_basic.c index 420ea19..3c93aca 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -6538,7 +6538,7 @@ static int _get_array_pos(mb_interpreter_t* s, _array_t* arr, int* d, int c) { } for(i = 0; i < c; i++) { n = d[i]; - if(n < 0 || n >= arr->dimensions[i]) { + if(n >= arr->dimensions[i]) { result = -1; goto _exit;