Bug 149712

Summary: floating point value too large
Product: [Fedora] Fedora Reporter: David Binderman <dcb314>
Component: gnofract4dAssignee: Panu Matilainen <pmatilai>
Status: CLOSED INSUFFICIENT_DATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: Christian.Iseli
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-07 00:00:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Binderman 2005-02-25 17:58:19 UTC
Description of problem:

I just tried to compile package gnofract4d-2.6-2 from 
Redhat Fedora Extras development tree.

The compiler said

fract4d/c/image.cpp(145): warning #264: floating-point value does not
fit in required floating-point type

The source code is

        index_buf[i] = 1e100; //std::numeric_limits<float>::infinity();

But index_buf[ i] is of type float, which means the maximum value
that can be stored in it is MAXFLOAT.

A quick grep suggests the compiler is correct to complain.

/usr/include/math.h:#  define MAXFLOAT  3.40282347e+38F

Suggest use MAXFLOAT, not 1e100


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 edwin 2005-03-03 04:22:24 UTC
Hi, I'm the author of gnofract4d.

Sorry about the compiler warning. This is actually supposed to cause
overflow to +ve infinity - that's what the effect of the commented-out
part actually ought to be. However I found that using infinity()
explicitly didn't work, though I'm not sure why. Hence this rather
odd-looking code. I'll see if there's a cleaner way to do this.

Comment 2 Christian Iseli 2007-01-17 23:23:25 UTC
FC3 and FC4 have now been EOL'd.

Please check the ticket against a current Fedora release, and either adjust the
release number, or close it if appropriate.

Thanks.

Your friendly BZ janitor :-)

Comment 3 petrosyan 2008-02-07 00:00:28 UTC
Fedora Core 3 is not maintained anymore.

Setting status to "INSUFFICIENT_DATA". If you can reproduce this bug in the
current Fedora release please reopen this bug and assign it to the corresponding
Fedora version.