Skip to content

Frog has bug dealing with overflowing hexadecimal literals #636

Closed
@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


What steps will reproduce the problem?

  1. Run this program with Frog:
    main() {
     print(0xABADC0DA + 0xABADC0DA);
     print(0xABADC0DA * 0xABADC0DA);
    }
  2. Like so: frogsh kast.dart

What is the expected output? What do you see instead?
Expect it to output the same the Dart VM does:
$ dart_release kast.dart
5760582068
8296076440540789156

Instead, we get this:
$ frogsh kast.dart
-2829352524
2001308926266292700

What version of the product are you using? On what operating system?
Dart bleeding edge. Linux manga 3.0.0-13-generic-pae #­22-Ubuntu SMP Wed Nov 2 15:17:35 UTC 2011 i686 i686 i386 GNU/Linux

Please provide any additional information below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions