Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawSumma committed May 15, 2024
1 parent ca67450 commit 3ec4e49
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pre.mak
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ default: all

all: compile_commands.json clang-format info.txt

info.txt: .dummy
: $(MAKE) -Bj1 -f $(FILE) OPT='-fanalyzer -fmax-errors=0' 2>&1 2> $(@)
info.txt: .dummyfanalyzer
: $(MAKE) -Bj1 -f $(FILE) OPT='- -fmax-errors=0' 2>&1 2> $(@)

compile_commands.json: .dummy
bear -- $(MAKE) -Bj -f $(FILE)
Expand Down
2 changes: 1 addition & 1 deletion vm/save/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ vm_save_t vm_save_load(FILE *in) {
uint8_t *ops = vm_malloc(sizeof(char) * nalloc);
size_t nops = 0;
size_t size;
for (;;) {
while (true) {
if (nops + 256 >= nalloc) {
nalloc = (nops + 256) * 2;
ops = vm_realloc(ops, sizeof(char) * nalloc);
Expand Down
2 changes: 1 addition & 1 deletion vm/std/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ char *vm_io_read(const char *vm_io_buffer_tname) {
char *ops = vm_malloc(sizeof(char) * nalloc);
size_t nops = 0;
size_t size;
for (;;) {
while (true) {
if (nops + 256 >= nalloc) {
nalloc = (nops + 256) * 2;
ops = vm_realloc(ops, sizeof(char) * nalloc);
Expand Down

0 comments on commit 3ec4e49

Please sign in to comment.