snc: use unsigned instead of signed int where appropriate
Particularly, use unsigned for syntax node types, since we use bit masks to represent sets of those types. This is necessary because (at least in C99) shifting a 1 into the sign bit is undefined (and we use all the available bits).
Showing
- src/snc/analysis.c 16 additions, 16 deletionssrc/snc/analysis.c
- src/snc/analysis.h 2 additions, 2 deletionssrc/snc/analysis.h
- src/snc/expr.c 1 addition, 1 deletionsrc/snc/expr.c
- src/snc/expr.h 1 addition, 1 deletionsrc/snc/expr.h
- src/snc/gen_ss_code.c 3 additions, 3 deletionssrc/snc/gen_ss_code.c
- src/snc/gen_tables.c 2 additions, 2 deletionssrc/snc/gen_tables.c
- src/snc/main.c 1 addition, 1 deletionsrc/snc/main.c
- src/snc/snl.re 14 additions, 8 deletionssrc/snc/snl.re
- src/snc/types.h 26 additions, 24 deletionssrc/snc/types.h
Please register or sign in to comment