From 875116c3e5960770ba7adf7f3e5108ec33981b7b Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Boric Date: Fri, 14 May 2021 17:43:31 +0200 Subject: [PATCH] Utilities: Fix const-correctness inside seq --- Userland/Utilities/seq.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Utilities/seq.cpp b/Userland/Utilities/seq.cpp index 8087b95e6a..07c885de7e 100644 --- a/Userland/Utilities/seq.cpp +++ b/Userland/Utilities/seq.cpp @@ -32,7 +32,7 @@ static double get_double(const char* name, const char* d_string, int* number_of_ print_usage(stderr); exit(1); } - if (char* dot = strchr(d_string, '.')) + if (const char* dot = strchr(d_string, '.')) *number_of_decimals = strlen(dot + 1); else *number_of_decimals = 0;