literal 1000. of type double is out of range error on ppc32 soft-float

Martin Michlmayr tbm@cyrius.com
Thu Oct 25 11:06:00 GMT 2007


I'm seeing the following error when building gjdoc on a ppc32 soft-float
system:
>        pw.println("Preparation (driver) took "+(((double)(beforeDocletTime-startTime))/1000.)+" s");
>                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>src/gnu/classpath/tools/gjdoc/Timer.java:34: error: The literal
>1000. of type double is out of range

I'm using Debian's gcj-4.2 package on a ppc32 system soft-float
system (i.e. without FPU).  My gcc/gcj is configured with:
--with-float=soft --without-long-double-128 --enable-softfloat

Dalibor Topic suggested on IRC to replace 1000.0 with (double)1000
which works.  The pecular thing is that it also works when I made this
substition only for the first out of three occurrences of 1000.0 in
that file.

Has anyone seen this before, and is anyone interested in looking at
this problem?  I'm happy to give people access to the system.

Thanks,
-- 
Martin Michlmayr
http://www.cyrius.com/



More information about the Java mailing list