Closed
Bug 457803
Opened 17 years ago
Closed 14 years ago
"nsDragService.cpp(146) : warning C4146: unary minus operator applied to unsigned type"
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect)
Tracking
()
RESOLVED
FIXED
mozilla14
People
(Reporter: sgautherie, Assigned: aceman)
References
(Blocks 1 open bug)
Details
(Whiteboard: [build_warning])
Attachments
(1 file)
|
1.05 KB,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
{
.../widget/src/windows/nsDragService.cpp(146) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
}
Code is:
{
121 PRUint32 bmWidth = dragRect.width, bmHeight = dragRect.height;
...
142 BITMAPV5HEADER bmih;
...
146 bmih.bV5Height = -bmHeight; // flip vertical
}
Updated•14 years ago
|
Whiteboard: [build_warning]
Updated•14 years ago
|
Blocks: buildwarning
Serge, can you try if this fixes it for you?
Assignee: nobody → acelists
Status: NEW → ASSIGNED
Attachment #606980 -
Flags: feedback?(sgautherie.bz)
| Reporter | ||
Comment 2•14 years ago
|
||
Comment on attachment 606980 [details] [diff] [review]
patch
(In reply to :aceman from comment #1)
> Serge, can you try if this fixes it for you?
I can't build anymore, but you can Try it:
https://tbpl.mozilla.org/php/getParsedLog.php?id=10171351&tree=Try&full=1
WINNT 5.2 try build on 2012-03-18 17:48:24 PDT for push 76573506d189
{
[...]/widget/windows/nsDragService.cpp(147) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
}
Attachment #606980 -
Flags: feedback?(sgautherie.bz)
Comment on attachment 606980 [details] [diff] [review]
patch
Thanks, looks like there is no warning now. Let's poke some reviewer if the change is OK and doesn't change the logic.
Attachment #606980 -
Flags: review?(vladimir)
Attachment #606980 -
Flags: review?(vladimir) → review+
Comment 5•14 years ago
|
||
Comment 6•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•