From 541a53b857dc6e7c3ff5e642394369cf26bf4544 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 29 Dec 2016 16:58:12 -0800 Subject: Richer tests and fixes for idhash. Also dynamically allocate idhash. --- src/core/options.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core/options.h') diff --git a/src/core/options.h b/src/core/options.h index 7319bdf4..ec5d28f1 100644 --- a/src/core/options.h +++ b/src/core/options.h @@ -30,8 +30,9 @@ extern int nni_getopt_duration(nni_duration *, void *, size_t *); // nni_setopt_int sets an integer, which must be between the minimum and // maximum values (inclusive). extern int nni_setopt_int(int *, const void *, size_t, int, int); -#define NNI_MAXINT ((int)2147483647) -#define NNI_MININT ((int)-2147483648) + +#define NNI_MAXINT ((int) 2147483647) +#define NNI_MININT ((int) -2147483648) // nni_getopt_int gets an integer. extern int nni_getopt_int(int *, void *, size_t *); -- cgit v1.2.3-70-g09d2