Add casts to avoid some compiler warnings
if the compiler is not able to detect the cast if safe.
This commit is contained in:
1 parent
bf49b8e933
commit
3f84f54d65
5 files changed
+76
-8
No files matched your search
@@ -1584,7 +1584,7 @@ m_core_parse_bool (bool *ptr, const char str[], const char **endptr)
|
||||
name (type *ptr, const char str[], const char **endptr) \
|
||||
{ \
|
||||
char *end; \
|
||||
*ptr = parse_func (str, &end extra_arg); \
|
||||
*ptr = (type) parse_func (str, &end extra_arg); \
|
||||
if (endptr != NULL) *endptr = end; \
|
||||
return end != str; \
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user