[cc65] nq.c(46): Error: Integer expression expected

From: Egan Ford <egan1sense.net>
Date: 2009-08-25 04:02:08
I get the following error:

nq.c(46): Error: Integer expression expected

With the following:

printf("\nRuntime: %ld sec, per iteration
%.2f\n\n",end-start,(float)(end-start)/ITERATIONS);

end and start are time_t, ITERATIONS is a define statement (100).

Same code compiles with gcc and Aztec C without issue.  If I remove just the
ITERATIONS and try to cast to a float I get:

cl65 --static-locals -O -t apple2enh nq.c tcp.o
nq.c(46): Internal compiler error:
Invalid type in CF flags: 0004, type = 4

Input: printf("\nRuntime: %ld sec, per iteration
%.2f\n\n",end-start,(float)(end-start));
cl65: Subprocess `cc65' aborted by signal 6

Any ideas how I can get around this?

Thanks.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Aug 25 04:02:19 2009

This archive was generated by hypermail 2.1.8 : 2009-08-25 04:02:20 CEST