Open mdejong opened 7 years ago
diff --git a/vitter.cpp b/vitter.cpp index e14f700..1bcab25 100644 --- a/vitter.cpp +++ b/vitter.cpp @@ -355,7 +355,7 @@ namespace vitter { */
void get_the_code(node **tree, unsigned char symbol, char *do_code, std::queue<char> *code_write) {
char temp[strlen(do_code)+2]; if ((tree)->symbol == symbol && (tree)->left == NULL && (tree)->right == NULL && (tree)->weight != 0) { for (int i=0; i<strlen(do_code); i++) { (*code_write).push(do_code[i]); @@ -378,7 +378,7 @@ namespace vitter { }
void get_nyt_code(node **tree, char *do_code, std::queue<char> *code_write) {
diff --git a/vitter.cpp b/vitter.cpp index e14f700..1bcab25 100644 --- a/vitter.cpp +++ b/vitter.cpp @@ -355,7 +355,7 @@ namespace vitter { */
char temp[strlen(do_code)+2]; if ((tree)->symbol == symbol && (tree)->left == NULL && (tree)->right == NULL && (tree)->weight != 0) { for (int i=0; i<strlen(do_code); i++) { (*code_write).push(do_code[i]); @@ -378,7 +378,7 @@ namespace vitter { }