From: nhmall Date: Thu, 30 Jun 2022 17:15:58 +0000 (-0400) Subject: follow-up 2: follow the conventional approach X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6920632df0fee38b7b33c6fa13a4eecc3e574981;p=nethack follow-up 2: follow the conventional approach --- diff --git a/sys/share/cppregex.cpp b/sys/share/cppregex.cpp index 9f95c6274..ca7d7978f 100644 --- a/sys/share/cppregex.cpp +++ b/sys/share/cppregex.cpp @@ -42,7 +42,7 @@ extern "C" { const char *regex_error_desc(struct nhregex *re) { if (re->err) { if (cppregex_static_buffer != 0) - free(cppregex_static_buffer); + free((genericptr_t) cppregex_static_buffer); cppregex_static_buffer = dupstr(re->err->what()); return cppregex_static_buffer; } else