]> git.sur5r.net Git - cc65/blobdiff - test/ref/otccex.c
Merge pull request #281 from polluks/sp65
[cc65] / test / ref / otccex.c
index a967e4805cf2d445fb97096d08c9cebf5cfe3927..aa5df158f22e1e77c62fc7a8f01085b46eb28261 100644 (file)
@@ -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;