Replace a classic cast by an assign cast.

This commit is contained in:
Patrick Pelissier committed 2017-05-28 20:55:31 +02:00
1 parent 63eed93a43
commit 2d34932563
1 file changed
+1 -1
+1 -1
View File
@@ -351,7 +351,7 @@ static inline size_t
string_search_char (const string_t v, char c)
{
STRING_CONTRACT (v);
const char *p = (const char*) strchr(string_get_cstr(v), c);
const char *p = M_ASSIGN_CAST(const char*, strchr(string_get_cstr(v), c));
return p == NULL ? STRING_FAILURE : (size_t) (p-string_get_cstr(v));
}