Merge pull request #25821 from taosdata/fix/tsim
fix(tsim/less): use int64_t instead of int32_t for 13 digits ts
This commit is contained in:
commit
ec46dac16d
|
@ -276,12 +276,16 @@ int32_t simExecuteExpression(SScript *script, char *exp) {
|
|||
if (op1[0] == '=') {
|
||||
strcpy(simGetVariable(script, var1 + 1, var1Len - 1), t3);
|
||||
} else if (op1[0] == '<') {
|
||||
val0 = atoi(t0);
|
||||
val1 = atoi(t3);
|
||||
int64_t val0 = atoll(t0);
|
||||
int64_t val1 = atoll(t3);
|
||||
// val0 = atoi(t0);
|
||||
// val1 = atoi(t3);
|
||||
if (val0 >= val1) result = -1;
|
||||
} else if (op1[0] == '>') {
|
||||
val0 = atoi(t0);
|
||||
val1 = atoi(t3);
|
||||
int64_t val0 = atoll(t0);
|
||||
int64_t val1 = atoll(t3);
|
||||
// val0 = atoi(t0);
|
||||
// val1 = atoi(t3);
|
||||
if (val0 <= val1) result = -1;
|
||||
}
|
||||
} else {
|
||||
|
@ -381,10 +385,8 @@ bool simExecuteRunBackCmd(SScript *script, char *option) {
|
|||
void simReplaceDirSep(char *buf) {
|
||||
#ifdef WINDOWS
|
||||
int i = 0;
|
||||
while(buf[i] != '\0')
|
||||
{
|
||||
if(buf[i] == '/')
|
||||
{
|
||||
while (buf[i] != '\0') {
|
||||
if (buf[i] == '/') {
|
||||
buf[i] = '\\';
|
||||
}
|
||||
i++;
|
||||
|
|
Loading…
Reference in New Issue