Skip to content

Commit

Permalink
Fix jit_example.c
Browse files Browse the repository at this point in the history
  • Loading branch information
bynect committed Jun 11, 2021
1 parent d0bac3b commit 2f77a4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/jit_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>

#include <unistd.h>
#include <fcntl.h>
Expand All @@ -44,15 +44,15 @@ jit_execute(bytebuffer_t *buf)
return 1;
}

printf("Before JIT execution.\n");
printf("Before JIT execution\n");
printf("----------------------------------------\n");

memcpy(exc, buf->bytes, buf->pos);
void (*fn)() = exc;
fn();

printf("----------------------------------------\n");
printf("After JIT execution.\n");
printf("After JIT execution\n");

munmap(exc, buf->pos);
close(fd);
Expand Down

0 comments on commit 2f77a4f

Please sign in to comment.