From 4a2c7d1fc9ab6efe6d91a9345cae561744d4856c Mon Sep 17 00:00:00 2001 From: tickduan <417921451@qq.com> Date: Thu, 8 Jul 2021 20:22:30 +0800 Subject: [PATCH] fix maxfloat error --- src/util/inc/tconfig.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/inc/tconfig.h b/src/util/inc/tconfig.h index f8695cb016..a680b7dd26 100644 --- a/src/util/inc/tconfig.h +++ b/src/util/inc/tconfig.h @@ -32,7 +32,8 @@ extern "C" { #define TSDB_CFG_CTYPE_B_OPTION 16U // can be configured by taos_options function #define TSDB_CFG_CTYPE_B_NOT_PRINT 32U // such as password -#define MAXFLOAT 0x1.fffffep+127f +#define MAXFLOAT 1E+120 +#define MINFLOAT -1E+120 enum { TAOS_CFG_CSTATUS_NONE, // not configured -- GitLab