From 0bfa8640216bff29f24f47f1c218c9adae651b5d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 1 Jul 2019 06:37:36 +0200 Subject: [PATCH] LibC: Fix -Werror build in new strtol(). --- LibC/stdlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibC/stdlib.cpp b/LibC/stdlib.cpp index 7acc5455c9..4a41e5be44 100644 --- a/LibC/stdlib.cpp +++ b/LibC/stdlib.cpp @@ -363,7 +363,7 @@ long strtol(const char* str, char** endptr, int base) num += (track *= base) / base * digit_value; } else { if (endptr != NULL) - *endptr = estr; + *endptr = const_cast(estr); return 0; }; estr--;