From 94c83320ebb81d1470d2f89057d94d8169c667d7 Mon Sep 17 00:00:00 2001 From: Brice Videau Date: Fri, 9 Nov 2018 10:50:22 -0600 Subject: [PATCH] Added guard to enums. --- src/excit.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/excit.h b/src/excit.h index 879b0b9..2e553f3 100644 --- a/src/excit.h +++ b/src/excit.h @@ -7,7 +7,8 @@ enum excit_type_e { EXCIT_REPEAT, EXCIT_HILBERT2D, EXCIT_PRODUCT, - EXCIT_SLICE + EXCIT_SLICE, + EXCIT_TYPE_MAX }; enum excit_error_e { @@ -16,7 +17,9 @@ enum excit_error_e { EXCIT_ENOMEM, EXCIT_EINVAL, EXCIT_EDOM, - EXCIT_ENOTSUP + EXCIT_ENOTSUP, + EXCIT_ERROR_MAX +}; struct excit_s { const struct excit_func_table_s *functions; -- 2.22.0