diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/glob.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/glob.c b/Src/glob.c index d3ce73310..ca2ffaf51 100644 --- a/Src/glob.c +++ b/Src/glob.c @@ -997,7 +997,9 @@ gmatchcmp(Gmatch a, Gmatch b) break; } if (r) - return (int) ((s->tp & GS_DESC) ? -r : r); + return (s->tp & GS_DESC) ? + (r < 0L ? 1 : -1) : + (r > 0L ? 1 : -1); } return 0; } |