https://bugzilla.novell.com/show_bug.cgi?id=445479


           Summary: Unsigned types should use unsigned arithmetic
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Basic
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


Option Strict On

Module UnsignedTest
    Sub Main()
                Dim us As UShort
                Dim by As Byte

                us = 12US
                by = CByte(8)
                Console.WriteLine(us > by)
    End Sub
End Module

This should result in "cgt.un" rather than "cgt". I haven't done extensive
testing but unsigned arithmetic is used only when both operands are unsigned.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to