Revert "Fix another const mismatch warning"

This reverts commit 776230782b.
This commit is contained in:
Max Brunsfeld 2018-06-15 13:22:37 -07:00
parent 4b5dab2d18
commit 52a5e4125e

View file

@ -59,7 +59,7 @@ bool ts_external_scanner_state_eq(const ExternalScannerState *a, const ExternalS
// SubtreeArray
bool ts_subtree_array_copy(SubtreeArray self, SubtreeArray *dest) {
Subtree **contents = NULL;
const Subtree **contents = NULL;
if (self.capacity > 0) {
contents = ts_calloc(self.capacity, sizeof(Subtree *));
memcpy(contents, self.contents, self.size * sizeof(Subtree *));