Latest CVS gives the following error with the Compaq C compiler on Tru64 UNIX: cc -I. -I. -O2 -std1 -DHAVE_CONFIG_H -I./popt -c batch.c -o batch.o cc: Error: batch.c, line 408: In this statement, a common type could not be determined for the 2nd and 3rd operands ("&s->count" and "&int_zero") of a conditional operator. (badcondit) write_batch_csums_file(s ? &s->count : &int_zero, sizeof(int)); -------------------------------^ gmake: *** [batch.o] Error 1 If I case &s->count to (unsigned int *), then it compiles. -- albert chin (china@thewrittenword.com)
On Thu, Feb 21, 2002 at 05:49:03PM -0600, Albert Chin wrote:> If I case &s->count to (unsigned int *), then it compiles.How about casting to size_t * (since s->count has type size_t)? (Btw, I'll try the configure patch tomorrow and let you know). -- Jos Backus _/ _/_/_/ Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ josb@cncdsl.com _/_/ _/_/_/ use Std::Disclaimer;