浏览代码

No need to test end of numeric

master
Arun Prakash Jana 6 年前
父节点
当前提交
2f86e0d107
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. +2
    -4
      nnn.c

+ 2
- 4
nnn.c 查看文件

@@ -669,16 +669,14 @@ xstricmp(char *s1, char *s2)
else if (*c1 == '\0' && *c2 == '\0') {
static long long num1, num2;

num1 = strtoll(s1, &c1, 10);
num2 = strtoll(s2, &c2, 10);
num1 = strtoll(s1, NULL, 10);
num2 = strtoll(s2, NULL, 10);
if (num1 != num2) {
if (num1 > num2)
return 1;
else
return -1;
}

*c1 = 0, *c2 = 0;
} else if (*c1 == '\0' && *c2 != '\0')
return -1;
else if (*c1 != '\0' && *c2 == '\0')


正在加载...
取消
保存