bugDotGNU Portable.NET - Bugs: bug #4197, cscc allows conversions that can...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #4197: cscc allows conversions that can cause overflows without the checked clause

Submitter:  Thong Nguyen <tum>
Submitted:  Sat 05 Jul 2003 01:10:18 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Sat 05 Jul 2003 05:07:58 AM UTC, comment #1: 

Fix committed to CVS - 5 July 2003

Rhys Weatherley <rweather>
Group administrator
Sat 05 Jul 2003 01:10:18 AM UTC, original submission:  

The program below compiles fine with cscc but csc gives this error:

testcscc.cs(8,12): error CS0221: Constant value '2148735297' cannot be converted to a 'int'
        (use 'unchecked' syntax to override)

using System;
using System.Collections;

public class Test
{
        public static void Main()
        {
                int x = (int)0x80131941;
        }
}

Thong Nguyen <tum>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2003-07-05 rweather StatusNone None
    Open/ClosedOpen None

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code