Add casts to avoid some compiler warnings

if the compiler is not able to detect the cast if safe.
This commit is contained in:
Patrick Pelissier committed 2020-06-21 23:03:40 +02:00
1 parent bf49b8e933
commit 3f84f54d65
5 files changed
+76 -8

No files matched your search

+1 -1
View File
@@ -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; \
}