Utilities: Fix const-correctness inside seq

This commit is contained in:
Jean-Baptiste Boric 2021-05-14 17:43:31 +02:00 committed by Andreas Kling
parent d76987be96
commit 875116c3e5

View file

@ -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;