diff options
Diffstat (limited to 'src/core/options.h')
| -rw-r--r-- | src/core/options.h | 5 |
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 *); |
