To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=40985
                  Issue #:|40985
                  Summary:|comparison is always true due to limited range of
                          |data type
                Component:|udk
                  Version:|680m72
                 Platform:|PC
                      URL:|
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|PATCH
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|cmc
              Reported by:|cmc





------- Additional comments from [EMAIL PROTECTED] Wed Jan 19 06:55:00 -0800 
2005 -------
There are a couple of places in idlc/source/astexpression.cxx where a value is
cast to a smaller type from a larger and then compared against some value which
is out of range for the new type but not for the old type. i.e. the gcc warning
"comparison is always true due to limited range of data type" is correct.
Attached is a patch to compare the uncast larger type against the out of range
for the smaller type before the final cast.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to