From 4526ee4c4ad675fbcc79934cfdee2ad15ee5139e Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Fri, 18 Sep 2020 12:51:53 +0200 Subject: Minor. --- stc/cdefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stc/cdefs.h b/stc/cdefs.h index 2d92c9ef..7ee1962b 100644 --- a/stc/cdefs.h +++ b/stc/cdefs.h @@ -90,7 +90,7 @@ #define c_forrange_3(i, type, stop) for (type i=0, i##_end_=stop; i < i##_end_; ++i) #define c_forrange_4(i, type, start, stop) for (type i=start, i##_end_=stop; i < i##_end_; ++i) #define c_forrange_5(i, type, start, stop, step) \ - for (type i=start, i##_inc_=step, i##_end_=stop - (i##_inc_ > 0); (i <= i##_end_) == (0 < i##_inc_); i += i##_inc_) + for (type i=start, i##_inc_=step, i##_end_=(stop) - (i##_inc_ > 0); (i <= i##_end_) == (0 < i##_inc_); i += i##_inc_) #define c_push_items(self, ctype, ...) do { \ const ctype##_input_t __arr[] = __VA_ARGS__; \ -- cgit v1.2.3