Develop and Download Open Source Software

Ticket #20056

Open Date: 2009-12-30 00:25

Last Update: 2010-03-05 23:59

Illegal result of cast.

Reporter:freebeansOwner:freebeans
Priority:9 - HighestMileStone:jvm0.4.8
Type:BugsSeverity:9 - Highest
Component:Mysaifu JVM 0.4.7Status:Closed
ResolutionFixed

Details

Cast result of float -> int is incorrect.

public class FloatCastTest
{
  public static void main(String[] args) throws Exception
  {
    float f = Integer.MAX_VALUE + 0.0f;
    int i = (int) f;
    System.out.println("f=" + f + " i=" + i);
  }
}

Results:

f=2.1474836E9 i=-2147483648

Attach File

File ListNo attachments.
Add New attachment
Add attachment filesPlease login to add new attachment

Ticket History - 3/4 Histories [Show all old Histories]

2009-12-30 00:25 Update by: freebeans

  • New Ticket "Illegal result of cast." created

2009-12-30 00:25 Update by: freebeans

  • Severity Update from 5 - Medium to 9 - Highest.

2010-02-02 01:46 Update by: freebeans

  • Milestone Update from (None) to jvm0.4.8.
  • Resolution Update from None to Fixed.

Comment

Fixed f2i, d2i, d2f, d2l instructions.

2010-03-05 23:59 Update by: freebeans

  • Ticket Close date set to 2010-03-05 23:59
  • Status Update from Open to Closed.

Add Comment/Update #20056 (Illegal result of cast.)

Please login to add comment to this ticket. » Login


SourceForge.JP is a Japanese version of SourceForge.net. For developments that are not related to Japan, we recommend you to use SourceForge.net.