[Mono-bugs] [Bug 445479] New: Unsigned types should use unsigned arithmetic

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Nov 16 06:52:24 EST 2008


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: rkvinge at novell.com
        ReportedBy: kornelpal at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list