feat(shell): fixed windows build error.
This commit is contained in:
parent
f72b3d3c14
commit
ce38259979
|
@ -1402,7 +1402,7 @@ char * lastWord(char * p) {
|
|||
char * p2 = strrchr(p, ',');
|
||||
|
||||
if (p1 && p2) {
|
||||
return MAX(p1, p2) + 1;
|
||||
return p1 > p2 ? p1 : p2 + 1;
|
||||
} else if (p1) {
|
||||
return p1 + 1;
|
||||
} else if(p2) {
|
||||
|
|
Loading…
Reference in New Issue