Browse Source

Use 'int' for boolean value to avoid conversion warning

Fixes #1127
bel2125 2 years ago
parent
commit
146058d6af
1 changed files with 1 additions and 1 deletions
  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) {