Explorar o código

Use 'int' for boolean value to avoid conversion warning

Fixes #1127
bel2125 %!s(int64=2) %!d(string=hai) anos
pai
achega
146058d6af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/match.inl

+ 1 - 1
src/match.inl

@@ -35,7 +35,7 @@ mg_match_impl(const char *pat,
 	size_t i_pat = 0; /* Pattern index */
 	size_t i_str = 0; /* Pattern index */
 
-	uint8_t case_sensitive = ((mcx != NULL) ? mcx->case_sensitive : 0);
+	int case_sensitive = ((mcx != NULL) ? mcx->case_sensitive : 0); /* 0 or 1 */
 
 	while (i_pat < pat_len) {