提交 5f6caece 编写于 作者: G Ganlin Zhao

unified return format

上级 a115ff12
...@@ -445,14 +445,12 @@ int64_t convertTimePrecision(int64_t utime, int32_t fromPrecision, int32_t toPre ...@@ -445,14 +445,12 @@ int64_t convertTimePrecision(int64_t utime, int32_t fromPrecision, int32_t toPre
if (utime > INT64_MAX / 1000) { if (utime > INT64_MAX / 1000) {
return INT64_MAX; return INT64_MAX;
} }
utime *= 1000; return utime * 1000;
goto end_;
case TSDB_TIME_PRECISION_NANO: case TSDB_TIME_PRECISION_NANO:
if (utime > INT64_MAX / 1000000) { if (utime > INT64_MAX / 1000000) {
return INT64_MAX; return INT64_MAX;
} }
utime *= 1000000; return utime * 1000000;
goto end_;
} }
} // end from milli } // end from milli
case TSDB_TIME_PRECISION_MICRO: { case TSDB_TIME_PRECISION_MICRO: {
...@@ -465,8 +463,7 @@ int64_t convertTimePrecision(int64_t utime, int32_t fromPrecision, int32_t toPre ...@@ -465,8 +463,7 @@ int64_t convertTimePrecision(int64_t utime, int32_t fromPrecision, int32_t toPre
if (utime > INT64_MAX / 1000) { if (utime > INT64_MAX / 1000) {
return INT64_MAX; return INT64_MAX;
} }
utime *= 1000; return utime * 1000;
goto end_;
} }
} // end from micro } // end from micro
case TSDB_TIME_PRECISION_NANO: { case TSDB_TIME_PRECISION_NANO: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册