From f5aa1d3c1c493a4e13d4fec1c0869b21c985a696 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Mon, 11 Jan 2021 13:33:09 +0800 Subject: [PATCH] [TD-225]fix compiler error. --- src/common/src/ttypes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/src/ttypes.c b/src/common/src/ttypes.c index e558dc188a..8197fb1042 100644 --- a/src/common/src/ttypes.c +++ b/src/common/src/ttypes.c @@ -613,7 +613,7 @@ int32_t tStrToInteger(const char* z, int16_t type, int32_t n, int64_t* value, bo } else if ((issigned && (v < INT64_MIN || v > INT64_MAX)) || ((!issigned) && (v < 0 || v > UINT64_MAX))) { ret = -1; } else { - *value = round(v); + *value = (int64_t) round(v); } errno = 0; -- GitLab