aboutsummaryrefslogtreecommitdiff
path: root/src/core/options.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2016-12-29 16:58:12 -0800
committerGarrett D'Amore <garrett@damore.org>2016-12-29 16:58:12 -0800
commit541a53b857dc6e7c3ff5e642394369cf26bf4544 (patch)
treeea2be095c4453782a6ba6c7087227e17f6084639 /src/core/options.h
parent76c1836aaf2e7738829834c043ba1bc4d6ed6cec (diff)
downloadnng-541a53b857dc6e7c3ff5e642394369cf26bf4544.tar.gz
nng-541a53b857dc6e7c3ff5e642394369cf26bf4544.tar.bz2
nng-541a53b857dc6e7c3ff5e642394369cf26bf4544.zip
Richer tests and fixes for idhash. Also dynamically allocate idhash.
Diffstat (limited to 'src/core/options.h')
-rw-r--r--src/core/options.h5
1 files changed, 3 insertions, 2 deletions
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 *);