Skip to content
Browse files

compiler: quick and dirty work-around for having too many identifiers

The realloc in grow_table changes the location of symbols. Since we
keep pointers to the symbols around for a while during compilation,
this causes trouble.

This quick and diry hack increases the first allocation well beyond
what the largest patch currently uses. Needs more thought, though.
  • Loading branch information...
1 parent 60b0198 commit 5109cd44a71a22c8aea7c214e8fe0e821ab33adc @wpwrak wpwrak committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/compiler/symtab.c
2  src/compiler/symtab.c
@@ -18,7 +18,7 @@
#include "symtab.h"
-#define INITIAL_ALLOC 64
+#define INITIAL_ALLOC 256
struct key_n {

0 comments on commit 5109cd4

Please sign in to comment.
Something went wrong with that request. Please try again.