fix:[TD-30579]compile error in macOS 14.5 and m3 chip
This commit is contained in:
parent
ad0dd88ba1
commit
3bdbb10608
|
@ -172,7 +172,7 @@ int32_t toIntegerEx(const char *z, int32_t n, uint32_t type, int64_t *value) {
|
||||||
} break;
|
} break;
|
||||||
case TK_NK_FLOAT: {
|
case TK_NK_FLOAT: {
|
||||||
double val = round(taosStr2Double(z, &endPtr));
|
double val = round(taosStr2Double(z, &endPtr));
|
||||||
if(val >= (double)INT64_MIN && val <= (double)INT64_MAX){
|
if(val < (double)INT64_MIN || val > (double)INT64_MAX){
|
||||||
return TSDB_CODE_FAILED;
|
return TSDB_CODE_FAILED;
|
||||||
}
|
}
|
||||||
if (errno == ERANGE || errno == EINVAL || endPtr - z != n) {
|
if (errno == ERANGE || errno == EINVAL || endPtr - z != n) {
|
||||||
|
|
Loading…
Reference in New Issue