Fix some inconsistencies in error cost calculation

Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
Max Brunsfeld 2016-08-31 10:51:59 -07:00 committed by Nathan Sobo
parent 883a7c8266
commit 0faae52132
7 changed files with 135 additions and 79 deletions

View file

@ -33,7 +33,7 @@ typedef struct TSTree {
TSSymbol symbol;
TSStateId parse_state;
size_t error_cost;
unsigned error_cost;
struct {
TSSymbol symbol;