From 78570747006bf4ab6bd5bdaf3c2a6cd432f792dd Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Thu, 14 Mar 2019 20:39:40 +0100 Subject: [PATCH] cmd: Remove useless cast to self. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- 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 435e0f36edb..1576ab7de5a 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 {