diff --git a/src/location.c b/src/location.c index 6bb7ba3b..a5c37fbc 100644 --- a/src/location.c +++ b/src/location.c @@ -257,7 +257,7 @@ caret_set_file (const char *file) caret_free (); } } - return caret_info.file; + return !!caret_info.file; } void caret_init (void) diff --git a/src/scan-code.l b/src/scan-code.l index 5fae172a..563baf52 100644 --- a/src/scan-code.l +++ b/src/scan-code.l @@ -216,7 +216,7 @@ is_dot_or_dash (char ch) static inline bool contains_dot_or_dash (const char* p) { - return strpbrk(p, ".-"); + return !!strpbrk (p, ".-"); } /* Defines a variant of a symbolic name resolution. */