Michael Stefaniuc : cmd: Remove useless cast to self.

Alexandre Julliard julliard at winehq.org
Thu Mar 14 18:33:22 CDT 2019


Module: wine
Branch: master
Commit: 78570747006bf4ab6bd5bdaf3c2a6cd432f792dd
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=78570747006bf4ab6bd5bdaf3c2a6cd432f792dd

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Thu Mar 14 20:39:40 2019 +0100

cmd: Remove useless cast to self.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/cmd/directory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/cmd/directory.c b/programs/cmd/directory.c
index 435e0f3..1576ab7 100644
--- a/programs/cmd/directory.c
+++ b/programs/cmd/directory.c
@@ -337,7 +337,7 @@ static DIRECTORY_STACK *WCMD_list_directory (DIRECTORY_STACK *inputparms, int le
     /* Work out the number of columns */
     WINE_TRACE("%d entries, maxwidth=%d, widest=%d\n", entry_count, max_width, widest);
     if (wide || orderByCol) {
-      numCols = max(1, (int)max_width / widest);
+      numCols = max(1, max_width / widest);
       numRows = entry_count / numCols;
       if (entry_count % numCols) numRows++;
     } else {




More information about the wine-cvs mailing list