Replace a classic cast by an assign cast.
This commit is contained in:
1 parent
63eed93a43
commit
2d34932563
1 file changed
+1
-1
+1
-1
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user