Bug 149712 - floating point value too large
Summary: floating point value too large
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gnofract4d
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-25 17:58 UTC by David Binderman
Modified: 2008-02-07 00:00 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-02-07 00:00:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.