Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4035346

integer declaration to long does not complain

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.0
    • unknown, 1.1, 1.1.2, 1.1.4, 1.1.5, 1.1.6
    • tools
    • 1.2
    • generic, x86, sparc
    • generic, solaris_2.5, solaris_2.6, windows_nt
    • Not verified



      Name: mc57594 Date: 02/27/97


      int i = 100000000000;

      I think that the compiler should complain about this.
      Rather it says nothing and tries to convert.

      After this statement is executed i = 1215752192;

      This could be a very very nasty bug that the compiler
      could easily warn about.

      Tell the programmer that this number requires an "L" or something.


      company - Mentor Graphics Corp. , email - ###@###.###
      ======================================================================

            tturnidgsunw Todd Turnidge (Inactive)
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: