From 38a8609993619636ae218f7ebe5ea1df96164425 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Sat, 14 Nov 2020 05:50:05 +0000 Subject: [PATCH] memory may corruption --- src/query/inc/qHistogram.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/query/inc/qHistogram.h b/src/query/inc/qHistogram.h index bb058449e8..4f5c738649 100644 --- a/src/query/inc/qHistogram.h +++ b/src/query/inc/qHistogram.h @@ -43,6 +43,8 @@ typedef struct SHistogramInfo { int32_t numOfElems; int32_t numOfEntries; int32_t maxEntries; + double min; + double max; #if defined(USE_ARRAYLIST) SHistBin* elems; @@ -52,9 +54,6 @@ typedef struct SHistogramInfo { int32_t maxIndex; bool ordered; #endif - - double min; - double max; } SHistogramInfo; SHistogramInfo* tHistogramCreate(int32_t numOfBins); -- GitLab