fix compiler warning with comparing char with `TSSymbolType'

This commit is contained in:
Björn Linse 2019-09-30 19:24:40 +02:00
parent 27149902f8
commit 1d2d043390

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++) {