X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=test%2Fref%2Fotccex.c;h=aa5df158f22e1e77c62fc7a8f01085b46eb28261;hb=e809d6bf0d0ed35bee291cffb845b280e42a9bc6;hp=a967e4805cf2d445fb97096d08c9cebf5cfe3927;hpb=ca300826cf6e27868901d6781dd329c6d286f71c;p=cc65 diff --git a/test/ref/otccex.c b/test/ref/otccex.c index a967e4805..aa5df158f 100644 --- a/test/ref/otccex.c +++ b/test/ref/otccex.c @@ -4,6 +4,8 @@ !!LICENCE!! GPL (?), read COPYING.GPL */ +#include "common.h" + /* * Sample OTCC C example. You can uncomment the first line and install * otcc in /usr/local/bin to make otcc scripts ! @@ -124,7 +126,7 @@ mymain(int argc,char **argv) } else { /* why not using a function pointer ? */ f = &fact; - print_num((*(long (*)())f)(n), base); + print_num((*(long (*)(int))f)(n), base); } printf("\n"); return 0;