提交 ce382599 编写于 作者: A Alex Duan

feat(shell): fixed windows build error.

上级 f72b3d3c
...@@ -1402,7 +1402,7 @@ char * lastWord(char * p) { ...@@ -1402,7 +1402,7 @@ char * lastWord(char * p) {
char * p2 = strrchr(p, ','); char * p2 = strrchr(p, ',');
if (p1 && p2) { if (p1 && p2) {
return MAX(p1, p2) + 1; return p1 > p2 ? p1 : p2 + 1;
} else if (p1) { } else if (p1) {
return p1 + 1; return p1 + 1;
} else if(p2) { } else if(p2) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册