summaryrefslogtreecommitdiff
path: root/libtcc-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtcc-test.c')
-rw-r--r--libtcc-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtcc-test.c b/libtcc-test.c
index 472ad68..eae8e97 100644
--- a/libtcc-test.c
+++ b/libtcc-test.c
@@ -10,7 +10,7 @@ const char *files[] = {
int main(int argc, char **argv) {
TCCState *s = tcc_new();
- void (*start)(void);
+ int (*start)(void);
tcc_set_output_type(s, TCC_OUTPUT_MEMORY);
@@ -23,7 +23,7 @@ int main(int argc, char **argv) {
start = tcc_get_symbol(s, "start");
- start();
+ int ret = start();
return 0;
}