Skip to content

Commit c742dc3

Browse files
Fixes issue #16
1 parent 1aad2f6 commit c742dc3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/lexer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ token* lexer::tokenize_statement(bool interactive_mode) {
349349
}
350350
return tokenize_expression();
351351
case TOKEN_OPEN_PARAM:
352+
case TOKEN_OPEN_BRACKET:
352353
case TOKEN_CREATE_ARRAY:
353354
case TOKEN_CREATE_STRUCT:
354355
case TOKEN_BINARY_OP:

src/types.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ reference_apartment* to_numerical(std::vector<value*> arguments, garbage_collect
2727
match_arg_type(arguments[0], VALUE_TYPE_COLLECTION);
2828

2929
collection* strcol = (collection*)arguments[0]->ptr;
30-
char* str = new char[strcol->size + 1];
30+
char* str = new char[strcol->size + 1];
3131
for (size_t i = 0; i < strcol->size; i++)
3232
{
3333
value* val = strcol->get_value(i);

0 commit comments

Comments
 (0)