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

unified return format

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