public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/11666] New: GCJ generates 0 instead of the maximum integer
@ 2003-07-24 23:41 michael dot diloreto at hp dot com
2003-07-24 23:47 ` [Bug libgcj/11666] " pinskia at physics dot uc dot edu
0 siblings, 1 reply; 2+ messages in thread
From: michael dot diloreto at hp dot com @ 2003-07-24 23:41 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11666
Summary: GCJ generates 0 instead of the maximum integer
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: michael dot diloreto at hp dot com
CC: gcc-bugs at gcc dot gnu dot org
When converting from a float value to an integer, if the float value is too
large, the result is 0 instead of the maximum integer. Here's the test.
class FloatBug {
public static void main ( String[] args ) {
int i = (int) 3.4e+32f;
System.out.println ( "(int) 3.4e+32f = " + i );
}
}
The answer should be 2147483647.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libgcj/11666] GCJ generates 0 instead of the maximum integer
2003-07-24 23:41 [Bug libgcj/11666] New: GCJ generates 0 instead of the maximum integer michael dot diloreto at hp dot com
@ 2003-07-24 23:47 ` pinskia at physics dot uc dot edu
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-24 23:47 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11666
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-24 23:47 -------
This is a dup of bug 6391 which is known bug.
*** This bug has been marked as a duplicate of 6391 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-24 23:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-24 23:41 [Bug libgcj/11666] New: GCJ generates 0 instead of the maximum integer michael dot diloreto at hp dot com
2003-07-24 23:47 ` [Bug libgcj/11666] " pinskia at physics dot uc dot edu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).