From e651bfcf290c9bd144a533687f8375178df3a134 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 14 Dec 2021 12:10:54 +0100 Subject: [PATCH] [qsort] fix implicit widening clang-tidy error --- apps/qsort.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/qsort.cpp b/apps/qsort.cpp index 8fa25ac1..9831dff4 100644 --- a/apps/qsort.cpp +++ b/apps/qsort.cpp @@ -91,7 +91,7 @@ static void qsort(int* arr, size_t s) { cps.wait(); } -static const size_t ARR_SIZE = 10 * 1000 * 1000; +static const size_t ARR_SIZE = 10L * 1000 * 1000; auto main() -> int { int* arr = new int[ARR_SIZE]; -- GitLab