Skip to content

Commit

Permalink
Fix concatenation bug 🐞
Browse files Browse the repository at this point in the history
  • Loading branch information
brachetti committed Oct 11, 2023
1 parent fa8a381 commit 115d51c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ target/**
.cache/**
test.lox
test*.lox
.idea/**
2 changes: 1 addition & 1 deletion src/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "common.h"
#include "object.h"

#define ALLOCATE(type, count) (type*)reallocate(NULL, 0, sizeof(true) * (count))
#define ALLOCATE(type, count) (type*)reallocate(NULL, 0, sizeof(type) * (count))

#define GROW_CAPACITY(capacity) ((capacity) < 8 ? 8 : (capacity) * 2)

Expand Down

0 comments on commit 115d51c

Please sign in to comment.