From 1dc751200abae0a42e4302fc88c634ba3a852d50 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Thu, 6 Aug 2020 18:07:24 +0800 Subject: [PATCH] TD-1057 --- src/os/inc/osMath.h | 2 +- src/query/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/inc/osMath.h b/src/os/inc/osMath.h index 99c2d4bca2..9935f94d39 100644 --- a/src/os/inc/osMath.h +++ b/src/os/inc/osMath.h @@ -21,7 +21,7 @@ extern "C" { #endif #define POW2(x) ((x) * (x)) -#define ABS(x) ((x) > 0 ? (x) : (-x)) +#define ABS(x) ((x) > 0 ? (x) : -(x)) #ifndef TAOS_OS_FUNC_MATH #define SWAP(a, b, c) \ diff --git a/src/query/CMakeLists.txt b/src/query/CMakeLists.txt index 04e4852dee..b9e7ff59e5 100644 --- a/src/query/CMakeLists.txt +++ b/src/query/CMakeLists.txt @@ -10,7 +10,7 @@ ADD_LIBRARY(query ${SRC}) SET_SOURCE_FILES_PROPERTIES(src/sql.c PROPERTIES COMPILE_FLAGS -w) IF (TD_LINUX) - TARGET_LINK_LIBRARIES(query tutil m rt) + TARGET_LINK_LIBRARIES(query tsdb tutil m rt) ADD_SUBDIRECTORY(tests) ELSEIF (TD_WINDOWS) TARGET_LINK_LIBRARIES(query tutil) -- GitLab