Merge pull request #454 from bfredl/symboltype

fix compiler warning for comparing `char` with `TSSymbolType'
This commit is contained in:
Max Brunsfeld 2019-09-30 11:19:32 -07:00 committed by GitHub
commit d40f3b96b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -732,7 +732,7 @@ TSQuery *ts_query_new(
TSSymbol *symbol_map = ts_malloc(sizeof(TSSymbol) * symbol_count);
for (unsigned i = 0; i < symbol_count; i++) {
const char *name = ts_language_symbol_name(language, i);
const char symbol_type = ts_language_symbol_type(language, i);
const TSSymbolType symbol_type = ts_language_symbol_type(language, i);
symbol_map[i] = i;
for (unsigned j = 0; j < i; j++) {